.MainContainer {
    max-width: 1200px;
    width: 100%;
    margin: 32px auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}
.title {
    font-size: 40px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color:rgba(27, 34, 56, 1);
}


.background {
    padding-top: 48px;
    padding-bottom: 48px;
    position: relative;
    display: flex;
    /* Задаем адаптивную ширину контейнера */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.background img {
    /* Изображение растягивается по ширине контейнера с сохранением пропорций */
    width: 100%;
    height: auto;
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%; /* Центрируем относительно экрана */
    width: 100vw; /* Фон на всю ширину экрана */
    height: 100%;
    background: linear-gradient(to bottom, rgba(185, 28, 28, 1), rgba(83, 13, 13, 1));
    transform: translateX(-50%); /* Смещаем влево на половину ширины */
    z-index: -1;
}
.newsDivider {
    width: 100%;
    height: 1px;
    background-color: #E5E5E5;
    position: relative;
    max-width: 1160px;
}

.newsDivider::after {
    content: '';
    width: 10%;
    background-color: rgba(198, 165, 99, 1);
    position: absolute;
    height: 6px;
    left: 50%;
    transform: translateX(-50%);
    top: -6px;
}

.contentBlock {
    display:flex;
    flex-direction: column;
    background-color: white;
    padding:32px;
    gap:32px;
    border-radius: 2px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
.categoryContainer {
    display: flex;
    justify-content: space-between;
    gap:30px;
}
.categoryContainer a {
    width: 100%;
}
.categoryButton {
    width: 100%;
    font-size: 44px;
    color:white;
    font-weight: 700;
    line-height: 64px;
    font-family: 'Vollkorn',sans-serif !important;
    padding:20px;
    background: linear-gradient(to right, rgba(27, 34, 56, 1), rgba(61, 72, 108, 1));
    border-radius: 8px;
    border:none;
}
.categoryButton:hover {
    width: 100%;
    font-size: 44px;
    color:white;
    font-weight: 700;
    line-height: 64px;
    font-family: 'Vollkorn',sans-serif !important;
    padding:20px;
    background: linear-gradient(to right, rgba(165, 28, 48, 1), rgba(239, 68, 68, 1));
    border-radius: 8px;
    border:none;
}
.contentTitle {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    line-height: 64px;
    font-family: 'Vollkorn', serif!important;
}
.tableContainer {
    display: flex;
    flex-direction: column;
    gap:24px;
}
.tableTitle {
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
}
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.styled-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
.styled-table td span{
    font-weight: bold;
}

.styled-table tr:nth-child(odd) {
    background-color: rgb(238, 238, 238);
}

.blocksContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.blocksContainer a {
    flex: 1 1 calc(33.33% - 24px); /* три в ряд */
    max-width: 350px;
    min-width: 250px;
    text-decoration: none; /* убираем подчеркивание */
    display: flex;
}

.block {
    flex: 1;
    min-height: 125px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 32px;
    color: rgba(27, 34, 56, 1);
    background-color: rgba(249, 249, 249, 1);
    position: relative;
    padding: 30px;
    text-align: center;
    border: none;
    cursor: pointer;
    width: 100%;
}

.block::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid rgba(198, 165, 99, 1);
    pointer-events: none;
}

.block:hover,
.block[data-active="true"] {
    background: linear-gradient(50deg,
    rgba(108, 74, 41, 1) 0%,
    rgba(195, 159, 107, 1) 25%,
    rgba(170, 123, 55, 1) 50%,
    rgba(207, 168, 114, 1) 75%,
    rgba(126, 92, 46, 1) 100%);
    color: #fff;
}


.faqsContainer {
    display: flex;
    flex-direction: column;
    gap:8px;
    width:100%;
}
.faqItem {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faqHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #ffffff;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.faqToggle {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}
.faqToggle img{
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faqContent {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faqItem.active .faqContent {
    padding: 10px 20px; /* Добавляем отступы при раскрытии */
}


.faqItem.active .faqToggle {
    transform: rotate(180deg); /* Поворачиваем стрелку вверх */
}
.faqItem.active .faqHeader {
    background: #f1f1f1; /* Цвет фона при активном состоянии */
    transition: background 0.3s ease;
}
.AbiturientsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px auto;
    align-items: stretch;
}

.AbiturientMain-card {
    flex: 1;
    background: url('/img/internationalCoop/fon.png') no-repeat center/cover;
    color: #fff;
    border-radius: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom:20px ;
    height: 376px;
    min-width: 362px;
}
.AbiturientMain-card span {
    padding-left:20px;
    line-height: 15px;
}

.AbiturientCards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 360px;
}

.AbiturientCard {
    flex: 1 1 calc(50% - 10px);
    border: 2px solid #C6A563;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
}
@media screen and (max-width:769px) {
    .AbiturientContainer{
        flex-direction: column;
    }
}
@media (max-width: 1024px) {
    .categoryButton {
        font-size: 32px;
        line-height: 48px;
        padding: 15px;
    }.categoryButton:hover {
        font-size: 32px;
        line-height: 48px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .categoryContainer {
        flex-direction: column;
        gap: 15px;
    }

    .categoryButton {
        font-size: 28px;
        line-height: 40px;
        padding: 12px;
    }.categoryButton:hover {
        font-size: 28px;
        line-height: 40px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .categoryButton {
        font-size: 24px;
        line-height: 36px;
        padding: 10px;
    }.categoryButton:hover {
        font-size: 24px;
        line-height: 36px;
        padding: 10px;
    }
}
/* Контейнер для таблицы, добавляем скролл на маленьких экранах */
.tableContainer {
    overflow-x: auto;
    width: 100%;
}

/* Убираем жесткие размеры и делаем таблицу адаптивной */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px; /* Минимальная ширина, чтобы не ломалась структура */
}

/* Стили ячеек */
.styled-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

/* Выделяем заголовки */
.styled-table td span {
    font-weight: bold;
}

/* Чередуем цвета строк */
.styled-table tr:nth-child(odd) {
    background-color: rgb(238, 238, 238);
}

/* Медиазапрос для мобильных устройств */
@media screen and (max-width: 768px) {
    .symbolText
    {
        max-width:0!important;
    }
    .tableContainer {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Улучшает скролл на мобильных */
    }

    /* Делаем таблицу блочной, чтобы она сохраняла структуру */
    .styled-table, .styled-table tbody, .styled-table tr, .styled-table td {
        display: block;
        width: 100%;
    }

    /* Добавляем отступы между ячейками */
    .styled-table td {
        text-align: left;
        padding: 12px;
        position: relative;
        border: none;
        border-bottom: 1px solid #ddd;
    }

    /* Добавляем метки для каждой строки (имитируем заголовки) */
    .styled-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #333;
    }
}

@media screen and (max-width:769px) {

    .AbiturientMain-card
    {
        min-width: auto;
    }
    .contentTitle
    {
        font-size: 35px !important;
    }
}

.incoming-entrance-exams-block {
    margin: 0 auto;
    background: linear-gradient(180deg, #B91C1C 0%, #530D0D 100%);
    overflow: hidden;
    position: relative;
    color: white;
}



.incoming-exams-content {
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.incoming-coat-of-arms {
    flex-shrink: 0;
    max-width: 342px;
    max-height: 342px;
}


.incoming-coat-of-arms img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.incoming-exams-info {
    flex: 1;
}

.incoming-exams-title {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Vollkorn', serif;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.incoming-exams-subtitle {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #C6A563, #E8C547);
    margin-bottom: 30px;
    border-radius: 2px;
}

.incoming-exams-details {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.95;
}

.incoming-exams-details div {
    margin-bottom: 8px;
}

.incoming-social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.incoming-social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #C6A563;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

}

.incoming-social-icon:hover {
    transform: translateY(-2px);
}
incoming-social-item:active, /* активная/посещенная ссылка */
incoming-social-item:hover,  /* при наведении */
.incoming-social-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    text-decoration: none;
    color: white !important;
    cursor: pointer;
}





.incoming-ornament {
    left: 0;
    right: 0;
}

.incoming-ornament img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.incoming-programs-section {
    padding: 40px 40px 30px 40px;
}

.incoming-programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.incoming-program-card {
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.incoming-program-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.incoming-program-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    /* Научно – педагогическая магистратура */


    font-family: 'Vollkorn'!important;
    font-style: normal!important;
    font-weight: 700;
    font-size: 32px;
    align-items: center;
    color: #C6A563;


}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .incoming-exams-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .incoming-coat-of-arms {
        width: 120px;
        height: 120px;
    }

    .incoming-exams-title {
        font-size: 32px;
    }

    .incoming-programs-section {
        padding: 25px 20px;
    }

    .incoming-programs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .incoming-program-card {
        padding: 20px 15px;
    }

    .incoming-program-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .incoming-exams-title {
        font-size: 26px;
    }

    .incoming-coat-of-arms {
        width: 100px;
        height: 100px;
    }

    .incoming-exams-details {
        font-size: 14px;
    }
}

/* Анимации */
@keyframes incoming-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.incoming-entrance-exams-block {
    animation: incoming-fadeIn 0.8s ease-out;
}

.incoming-program-card {
    animation: incoming-fadeIn 0.6s ease-out;
}

.incoming-program-card:nth-child(2) {
    animation-delay: 0.1s;
}

.incoming-program-card:nth-child(3) {
    animation-delay: 0.2s;
}

.incoming-program-card.active {
    background: rgba(198, 165, 99, 0.3) !important;
    border: 2px solid #C6A563 !important;
    transform: translateY(-5px) !important;
}

.incoming-program-card.active .incoming-program-title {
    color: #FFE5B4 !important;
    font-weight: 700 !important;
}

/* Анимация смены контента */
.incoming-exams-details {
    transition: all 0.3s ease-in-out;
}

.incoming-exams-details.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.incoming-exams-details.fade-in {
    opacity: 1;
    transform: translateY(0);
}


     /* Стили для кнопок "Подробнее" */
 .incoming-program-more-btn {
     background: linear-gradient(135deg, #C6A563 0%, #E8C547 100%);
     color: white;
     border: none;
     padding: 12px 24px;
     border-radius: 8px;
     font-size: 14px;
     font-weight: 600;
     font-family: 'Inter', sans-serif;
     cursor: pointer;
     transition: all 0.3s ease;
     margin-top: 15px;
     text-decoration: none;
     display: inline-block;
     text-align: center;
     box-shadow: 0 4px 12px rgba(198, 165, 99, 0.3);
 }

.incoming-program-more-btn:hover {
    background: linear-gradient(135deg, #E8C547 0%, #C6A563 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(198, 165, 99, 0.4);
    color: white;
    text-decoration: none;
}

.incoming-program-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(198, 165, 99, 0.3);
}

/* Мобильная адаптация для кнопок */
@media (max-width: 768px) {
    .incoming-program-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .incoming-program-more-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}