/* ========== БЛОК 1: BANNER ========== */
.banner {
    /* Фон и размеры */
    min-height: 100vh;
    width: 100%;
    
    /* Flexbox для центрирования */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Фоновая картинка */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Текст и позиционирование */
    text-align: center;
    position: relative;
    padding: 0;
    margin: 0;
    
    /* Принудительные стили */
    box-sizing: border-box;
}

/* Затемнение фона */
.banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Контейнер */
.banner__container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

/* Остальные стили */
.banner__title {
    font-weight: 800;
    margin-bottom: 25px;
    width: 100%;
    line-height: 1.2;
}

.banner__subtitle {
    font-weight: 500;
    margin-bottom: 30px;
    width: 100%;
    line-height: 1.3;
}

.banner__text {
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 50px;
    font-weight: 300;
    width: 100%;
}

.banner__button {
    display: inline-block;
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.banner__button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: currentColor;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========== БЛОК 2: ABOUT (О КАФЕДРЕ) ========== */
.about {
    position: relative;
    overflow: hidden;
}

.about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about__title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 40px;
    border-radius: 2px;
}

.about__content {
    max-width: 1000px;
    margin: 0 auto;
}

.about__paragraph {
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.about__skills {
    padding-left: 20px;
    margin-bottom: 25px;
}

.about__skills-text {
    margin-bottom: 15px;
    font-weight: 500;
    color: #2c3e50;
}

.about__skills-list {
    list-style-type: disc;
    padding-left: 40px;
    margin: 10px 0;
}

.about__skills-list li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.about__subtitle {
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.about__features {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.about__feature-item {
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.about__feature-marker {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    font-weight: bold;
}

.about__feature-title {
    color: #2c3e50;
    font-weight: 600;
}

.about__additional {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #3498db;
}

.about__additional-text {
    font-style: italic;
    color: #34495e;
    margin: 0;
    line-height: 1.6;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .about__container {
        padding: 0 15px;
    }
    
    .about__skills {
        padding-left: 10px;
    }
    
    .about__skills-list {
        padding-left: 25px;
    }
    
    .about__feature-item {
        padding-left: 30px;
    }
    
    .about__feature-marker {
        font-size: 1.6rem;
    }
    
    .about__additional {
        padding: 20px;
    }
}

/* ========== БЛОК 3: APPLICANTS (АБИТУРИЕНТАМ) ========== */
.applicants {
    position: relative;
}

.applicants__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.applicants__title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.applicants__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 40px;
    border-radius: 2px;
}

.applicants__button-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.applicants__main-button {
    display: inline-block;
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.applicants__main-button:hover {
    opacity: 0.9;
}

.applicants__intro {
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.applicants__programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.applicants__program-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.applicants__program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.applicants__program-card-title {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.applicants__program-card-icon {
    font-size: 2rem;
}

.applicants__program-card-info {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.applicants__program-card-info p {
    margin-bottom: 8px;
}

.applicants__program-card-info p:last-child {
    margin-bottom: 0;
}

.applicants__program-card-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    flex: 1;
}

.applicants__program-card-list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.applicants__program-card-check {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.applicants__program-card-button {
    display: block;
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.applicants__program-card-button:hover {
    opacity: 0.9;
}

.applicants__requirements {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.applicants__requirements-title {
    color: #2c3e50;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.applicants__requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.applicants__requirement-item {
    text-align: center;
}

.applicants__requirement-value {
    font-weight: bold;
    margin-bottom: 10px;
}

.applicants__requirement-label {
    color: #555;
}

.applicants__actions {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.applicants__action-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.applicants__action-button--primary {
    color: white;
}

.applicants__action-button--primary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.applicants__action-button--secondary {
    background: transparent;
}

.applicants__action-button--secondary:hover {
    background: <?php echo $primary_color; ?>;
    color: white;
    transform: translateY(-3px);
}

.applicants__action-button--light {
    background: #f0f0f0;
    color: #333;
    border: 3px solid #f0f0f0;
}

.applicants__action-button--light:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
}

.applicants__note {
    margin-top: 50px;
    padding: 20px;
    background: #e8f4fc;
    border-radius: 10px;
    text-align: center;
}

.applicants__note-text {
    color: #2c3e50;
    margin: 0;
    font-style: italic;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .applicants__container {
        padding: 0 15px;
    }
    
    .applicants__programs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .applicants__program-card {
        padding: 20px;
    }
    
    .applicants__requirements {
        padding: 25px;
    }
    
    .applicants__requirements-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .applicants__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .applicants__action-button {
        width: 100%;
        max-width: 300px;
        padding: 15px 30px;
    }
    
    .applicants__main-button {
        padding: 15px 40px;
    }
}

/* ========== БЛОК 4: STUDENTS (СТУДЕНТАМ) ========== */
.students {
    position: relative;
}

.students__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.students__title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
}

.students__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 40px;
    border-radius: 2px;
}

.students__button-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.students__main-button {
    display: inline-block;
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.students__main-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.students__intro {
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.students__resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.students__resource-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.students__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.students__resource-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.students__resource-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.students__resource-text {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    flex: 1;
}

.students__resource-button {
    display: inline-block;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.students__resource-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.students__links {
    margin-bottom: 60px;
}

.students__links-title {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.students__links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.students__link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.students__link-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.students__link-button--red {
    background: #e74c3c;
    border: 2px solid #e74c3c;
}

.students__link-button--blue {
    background: #3498db;
    border: 2px solid #3498db;
}

.students__link-button--green {
    background: #2ecc71;
    border: 2px solid #2ecc71;
}

.students__link-button--orange {
    background: #f39c12;
    border: 2px solid #f39c12;
}

.students__link-button--purple {
    background: #9b59b6;
    border: 2px solid #9b59b6;
}

.students__contacts {
    background: #f0f7ff;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.students__contacts-title {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.students__contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.students__contact-label {
    font-weight: 600;
    margin-bottom: 10px;
}

.students__contact-value {
    color: #555;
}

.students__contact-value a {
    text-decoration: none;
}

.students__contact-value a:hover {
    text-decoration: underline;
}

.students__consultation {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.students__consultation p {
    color: #666;
    margin: 0;
}

.students__notice {
    margin-top: 50px;
    padding: 20px;
    background: #fff8e1;
    border-radius: 10px;
    border: 2px solid #ffc107;
    text-align: center;
}

.students__notice-text {
    color: #856404;
    margin: 0;
    font-weight: 600;
}

.students__notice-text a {
    text-decoration: none;
    margin-left: 10px;
}

.students__notice-text a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .students__container {
        padding: 0 15px;
    }
    
    .students__resources {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .students__resource-card {
        padding: 20px;
    }
    
    .students__links-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .students__link-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .students__contacts {
        padding: 25px;
    }
    
    .students__contacts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .students__main-button {
        padding: 15px 40px;
    }
}

/* Мобильные стили для секции "Студентам" */
@media (max-width: 768px) {
    .students__title {
        font-size: var(--students-mobile-title-size, 2.5rem) !important;
    }
    
    .students__intro {
        font-size: var(--students-mobile-intro-size, 1.2rem) !important;
    }
    
    .students__main-button {
        font-size: var(--students-mobile-btn-size, 1.4rem) !important;
    }
    
    .students__resource-title {
        font-size: var(--students-mobile-card-title-size, 1.5rem) !important;
    }
    
    .students__resource-text {
        font-size: var(--students-mobile-card-desc-size, 1rem) !important;
    }
    
    .students__links-title {
        font-size: var(--students-mobile-links-title-size, 1.5rem) !important;
    }
    
    .students__contacts-title {
        font-size: var(--students-mobile-contacts-title-size, 1.5rem) !important;
    }
    
    .students__contact-label,
    .students__contact-value,
    .students__consultation p {
        font-size: var(--students-mobile-contacts-text-size, 1rem) !important;
    }
    
    .students__notice-text {
        font-size: var(--students-mobile-notice-size, 1rem) !important;
    }
}

/* ========== БЛОК 5: TEACHERS (ПРЕПОДАВАТЕЛИ КАФЕДРЫ) ========== */
.teachers {
    position: relative;
}

.teachers__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.teachers__title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teachers__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* Секция заведующего */
.teachers__leader-section {
    margin-bottom: 80px;
}

.teachers__leader-label {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.teachers__leader-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.teachers__leader-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.teachers__leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.teachers__leader-info {
    flex: 1;
}

.teachers__leader-name {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.teachers__leader-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 25px;
}

.teachers__leader-col {
    flex: 1;
    min-width: 250px;
}

.teachers__leader-block {
    margin-bottom: 15px;
}

.teachers__leader-block-title {
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teachers__leader-block-text {
    color: #555;
    line-height: 1.6;
}

.teachers__leader-button {
    display: inline-block;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
}

.teachers__leader-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Фильтры */
.teachers__filter-section {
    margin-top: 40px;
}

.teachers__filters-title {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.teachers__filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.teachers__filter-btn {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.teachers__filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Сетка преподавателей */
.teachers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.teachers__card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.teachers__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.teachers__card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.teachers__card-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.teachers__card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teachers__card-info {
    flex: 1;
}

.teachers__card-name {
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}

.teachers__card-position {
    font-weight: 600;
}

.teachers__card-details {
    color: #777;
    margin-bottom: 20px;
    flex: 1;
}

.teachers__card-details div {
    margin-bottom: 8px;
}

.teachers__card-details div:last-child {
    margin-bottom: 0;
}

.teachers__card-button {
    display: inline-block;
    background: transparent;
    color: #3498db;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
}

.teachers__card-button:hover {
    background: #3498db;
    color: white;
}

/* Кнопка "Показать всех" */
.teachers__show-all-wrapper {
    text-align: center;
}

.teachers__show-all-button {
    display: inline-block;
    background: transparent;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.teachers__show-all-button:hover {
    background: <?php echo $primary_color; ?>;
    color: white !important;
}

.teachers__total-count {
    color: #777;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .teachers__container {
        padding: 0 15px;
    }
    
    .teachers__leader-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }
    
    .teachers__leader-photo {
        width: 180px;
        height: 180px;
    }
    
    .teachers__leader-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .teachers__leader-col {
        min-width: auto;
    }
    
    .teachers__leader-button {
        margin: 15px auto 0;
    }
    
    .teachers__filter-buttons {
        gap: 10px;
    }
    
    .teachers__filter-btn {
        padding: 8px 20px;
        min-width: 120px;
    }
    
    .teachers__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .teachers__card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .teachers__card-photo {
        width: 100px;
        height: 100px;
    }
}

/* ========== БЛОК: НАУКА И ПРОЕКТЫ ========== */
.science__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.science__title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.science__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 40px;
    border-radius: 2px;
}

.science__intro {
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.science__directions {
    margin-bottom: 80px;
}

.science__directions-title {
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

.science__directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.science__direction-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.science__direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.science__direction-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    flex-shrink: 0;
}

.science__direction-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.science__direction-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    min-height: 5.6rem;
    line-height: 1.4;
}

.science__direction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.science__direction-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.science__direction-marker {
    position: absolute;
    left: 0;
}

.science__projects {
    margin-bottom: 80px;
}

.science__projects-title {
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
    min-height: 4.2rem;
}

.science__projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.science__project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.science__project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.science__project-header {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.science__project-emoji {
    font-size: 3.5rem;
}

.science__project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.science__project-title {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    min-height: 5.6rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.science__project-text {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.science__project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.science__project-tag {
    background: #f0f8ff;
    color: #2c3e50;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.science__project-tag--blue {
    background: #e8f4fc;
    color: #3498db;
}

.science__project-tag--green {
    background: #e8f8f0;
    color: #2ecc71;
}

.science__project-tag--purple {
    background: #f5eef8;
    color: #9b59b6;
}

.science__project-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.science__project-link:hover {
    text-decoration: underline;
}

.science__stats {
    border-radius: 15px;
    padding: 50px;
    margin-bottom: 60px;
}

.science__stats-title {
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

.science__stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.science__stat-value {
    font-weight: 700;
    margin-bottom: 10px;
}

.science__stat-label {
    color: white;
}

.science__partners {
    margin-bottom: 60px;
}

.science__partners-title {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.science__partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.science__partner {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.science__partner:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.science__actions {
    text-align: center;
}

.science__actions-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.science__action-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.science__action-button--primary {
    color: white;
}

.science__action-button--primary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.science__action-button--secondary {
    background: transparent;
}

.science__action-button--secondary:hover {
    background: <?php echo $primary_color; ?>;
    color: white;
    transform: translateY(-3px);
}

.science__action-button--dark {
    color: white;
}

.science__action-button--dark:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.science__contact {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.science__contact-title {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.science__contact-text {
    color: #555;
    margin: 0;
}

.science__contact-text a {
    text-decoration: none;
}

.science__contact-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .science__container {
        padding: 0 15px;
    }
    .science__directions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .science__direction-card {
        padding: 20px;
    }
    .science__projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .science__project-content {
        padding: 20px;
    }
    .science__stats {
        padding: 30px;
    }
    .science__stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .science__partners-grid {
        flex-direction: column;
    }
    .science__partner {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    .science__actions-buttons {
        flex-direction: column;
        align-items: center;
    }
    .science__action-button {
        width: 100%;
        max-width: 280px;
    }
    .science__contact {
        padding: 20px;
    }
}

/* ========== БЛОК: ПАРТНЕРЫ ========== */
.partners {
    background: #f8f9fa;
    position: relative;
}

.partners__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partners__title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
}

.partners__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* Федеральные партнеры */
.partners__federal {
    text-align: center;
    margin-bottom: 80px;
}

.partners__federal-text {
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
}

.partners__federal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    align-items: stretch;
}

.partners__federal-item {
    text-align: center;
    max-width: 300px;
    display: flex;
    flex-direction: column;
}

.partners__federal-logo {
    width: 200px;
    height: 200px;
    background: white;
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #eaeaea;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners__federal-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.partners__federal-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partners__federal-name {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Философия и цитата */
.partners__philosophy {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}

.partners__philosophy-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners__quote {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    margin-bottom: 30px;
}

.partners__quote-text {
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    text-align: center;
}

.partners__quote-author {
    text-align: right;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.partners__quote-author-name {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
}

.partners__quote-author-title {
    margin: 0;
}

/* Преимущества */
.partners__advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partners__advantage {
    text-align: center;
}

.partners__advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.partners__advantage-title {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.partners__advantage-text {
    color: #666;
    line-height: 1.6;
}

/* Региональные партнеры */
.partners__regional-title {
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners__regional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.partners__partner-card {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partners__partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.partners__partner-logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.partners__partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.partners__partner-name {
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.partners__partner-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Кнопка и контакты */
.partners__actions {
    text-align: center;
}

.partners__button {
    display: inline-block;
    background: transparent;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    margin-bottom: 40px;
}

.partners__button:hover {
    background: <?php echo $primary_color; ?>;
    color: white;
    transform: translateY(-3px);
}

.partners__contact {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.partners__contact-title {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 600;
    text-align: center;
}

.partners__contact-text {
    color: #555;
    margin: 0;
    text-align: center;
}

.partners__contact-text a {
    color: #3498db;
    text-decoration: none;
}

.partners__contact-text a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .partners__container {
        padding: 0 15px;
    }
    
    .partners__federal-grid {
        gap: 40px;
    }
    
    .partners__federal-logo {
        width: 150px;
        height: 150px;
    }
    
    .partners__federal-name {
        min-height: auto;
        font-size: 1.4rem;
    }
    
    .partners__philosophy {
        padding: 30px 20px;
    }
    
    .partners__advantages {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .partners__regional-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .partners__partner-card {
        padding: 25px 15px;
    }
    
    .partners__partner-logo {
        width: 100px;
        height: 100px;
    }
    
    .partners__button {
        padding: 12px 30px;
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }
    
    .partners__contact {
        padding: 20px;
    }
}

/* ========== БЛОК: НОВОСТИ ========== */
.news {
    position: relative;
    overflow: hidden;
}

.news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news__title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
}

.news__divider {
    width: 80px;
    height: 4px;
    margin: 0 auto 60px;
    border-radius: 2px;
}

/* Карусель */
.news__carousel-wrapper {
    position: relative;
}

.news__carousel {
    display: flex;
    gap: 30px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
    margin: 0 -5px;
    align-items: stretch;
}

.news__card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    height: auto;
}

.news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news__card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    flex-shrink: 0;
}

.news__card-placeholder {
    display: block;
}

.news__card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news__card-title {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news__card-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    max-height: 9.6em;  /* 6 строк × 1.6 line-height */
    overflow: hidden;
    flex: 1;
}

.news__card-button {
    display: inline-block;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: auto;
    box-sizing: border-box;
}

.news__card-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Кнопки навигации */
.news__carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.news__carousel-btn--prev {
    left: -20px;
}

.news__carousel-btn--next {
    right: -20px;
}

/* Индикаторы */
.news__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.news__dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news__dot.active {
    background: <?php echo $primary_color; ?>;
}

/* Кнопка "Все новости" */
.news__button-wrapper {
    text-align: center;
    margin-top: 50px;
}

.news__all-button {
    display: inline-block;
    background: transparent;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news__all-button:hover {
    background: <?php echo $primary_color; ?>;
    color: white;
    transform: translateY(-3px);
}

/* Адаптивность */
@media (min-width: 769px) and (max-width: 1023px) {
    .news__card {
        flex: 0 0 calc(50% - 15px);
    }
    
    .news__carousel-btn--prev {
        left: -15px;
    }
    
    .news__carousel-btn--next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .news__container {
        padding: 0 15px;
    }
    
    .news__carousel {
        gap: 20px;
        align-items: stretch;
    }
    
    .news__card {
        flex: 0 0 calc(100% - 0px);
    }
    
    .news__carousel-btn--prev {
        left: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .news__carousel-btn--next {
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .news__card-image {
        height: 160px;
    }
    
    .news__card-content {
        padding: 20px;
    }
    
    .news__all-button {
        padding: 12px 30px;
    }
}