/* Стили для страницы научной работы */

/* Стили для табов */
.scientific-tabs-container {
    margin: 30px 0;
    width: 100%;
}

.scientific-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 1px;
}

.scientific-tab-btn {
    padding: 12px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
    margin-bottom: 0;
}

.scientific-tab-btn:hover {
    background-color: #e9ecef;
    color: #0049a8;
}

.scientific-tab-btn.active {
    background-color: #fff;
    color: #0049a8;
    border-bottom: 2px solid #fff;
    border-top: 2px solid #0049a8;
    z-index: 1;
}

.scientific-tab-content {
    display: none;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.scientific-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Стили для секций */
.scientific-work-section {
    margin-bottom: 50px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.scientific-work-subtitle {
    margin-bottom: 25px;
    color: #0049a8;
    font-size: 24px;
    position: relative;
    padding-left: 15px;
}


.scientific-work-description {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Стили для карточек материалов */
.scientific-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.scientific-material-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
}

.scientific-material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.scientific-material-image {
    height: 100%;
    overflow: hidden;
}

.scientific-material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.scientific-material-card:hover .scientific-material-image img {
    transform: scale(1.05);
}

.scientific-material-info {
    padding: 15px;
}

.scientific-material-info h3 {
    margin-bottom: 10px;
    color: #0049a8;
    font-size: 18px;
}

.scientific-material-info p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.download-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0049a8;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #003b85;
}

/* Кнопка "Вернуться наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0049a8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .scientific-work-nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .scientific-work-nav-link {
        width: 100%;
        text-align: center;
    }

    /* Стили для табов на мобильных устройствах */
    .scientific-tabs {
        flex-direction: column;
        gap: 5px;
        border-bottom: none;
        padding: 0 10px;
    }

    .scientific-tab-btn {
        width: 100%;
        border: 1px solid #e5e5e5;
        border-radius: 5px;
        margin-bottom: 5px;
        bottom: 0;
        text-align: left;
    }

    .scientific-tab-btn.active {
        border-bottom: 1px solid #e5e5e5;
        border-left: 3px solid #0049a8;
        background-color: #f0f5ff;
    }

    .scientific-tab-content {
        padding: 15px 10px;
    }

    .scientific-tab-content-container {
        padding: 0 10px;
    }

    .scientific-materials-grid {
        grid-template-columns: 1fr;
        padding: 0 5px;
    }

    .scientific-work-subtitle {
        font-size: 20px;
        padding-left: 10px;
    }

    .scientific-material-card {
        margin-bottom: 15px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}