.content-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: -0.02em;
    position: relative;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #007bff;
}

.content-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.content-section {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #f1f3f4;
    position: relative;
    transition: all 0.2s ease;
}

.content-section:hover {
    border-color: #e3f2fd;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
}

.content-section h2 {
    color: #1a202c;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.01em;
}

.section-content {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
}

.single-section {
    max-width: 700px;
    margin: 0 auto;
}

.page-lead {
    max-width: 680px;
    margin: 1.75rem auto 0;
    color: #5f6b7a;
    font-size: 1.05rem;
    line-height: 1.65;
}

.legal-documents-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.9rem;
}

.legal-document-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 8px;
    color: #1f2d3d;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legal-document-link:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.legal-document-title {
    font-weight: 600;
    line-height: 1.4;
}

.legal-document-action {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 0.92rem;
    font-weight: 600;
}

.footer-section-link {
    color: inherit;
    text-decoration: none;
}

.footer-section-link:hover {
    color: #2563eb;
}

@media (max-width: 640px) {
    .legal-document-link {
        align-items: flex-start;
        flex-direction: column;
    }
}

.contacts-content {
    background: #fafbfc;
    color: #2d3748;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Цветные акценты для секций */
.content-section:not(.editorial-member)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 0 0 12px;
}

.content-section:not(.editorial-member):nth-child(5n+1)::before {
    background: #48bb78;
}

.content-section:not(.editorial-member):nth-child(5n+2)::before {
    background: #4299e1;
}

.content-section:not(.editorial-member):nth-child(5n+3)::before {
    background: #9f7aea;
}

.content-section:not(.editorial-member):nth-child(5n+4)::before {
    background: #ed8936;
}

.content-section:not(.editorial-member):nth-child(5n+5)::before {
    background: #38b2ac;
}

/* Стили для фото редколлегии */
.editorial-member {
    position: relative;
    overflow: visible;
}

.editorial-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0 0 0 12px;
}

/* Циклические градиенты для любого количества членов редколлегии */
.editorial-member:nth-child(8n+1)::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.editorial-member:nth-child(8n+2)::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.editorial-member:nth-child(8n+3)::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.editorial-member:nth-child(8n+4)::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.editorial-member:nth-child(8n+5)::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.editorial-member:nth-child(8n+6)::before {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.editorial-member:nth-child(8n+7)::before {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.editorial-member:nth-child(8n+8)::before {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.member-header {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.member-photo {
    flex-shrink: 0;
    width: 220px;
    position: relative;
}

.member-photo-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.member-photo-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.member-info {
    flex: 1;
    min-width: 0;
    padding-top: 0.5rem;
}

.member-info h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
}

.member-info .section-content {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Профили под текстом */
.member-profiles {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    grid-column: 1 / -1; 
}

/* Для случаев без фото - текст на всю ширину */
.editorial-member:not(.has-photo) .member-header {
    display: block;
}

.editorial-member:not(.has-photo) .member-info {
    width: 100%;
    padding-top: 0;
}

/* Вариант с фото */
.editorial-member.has-photo .member-header {
    display: flex;
    align-items: flex-start;
}

.orcid-section {
    margin-bottom: 1rem;
}

.orcid-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #A6CE39;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(166, 206, 57, 0.1);
}

.orcid-badge:hover {
    background: linear-gradient(135deg, #A6CE39 0%, #8fb82c 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 206, 57, 0.25);
}

.orcid-badge img {
    width: 18px;
    height: 18px;
    transition: filter 0.3s;
}

.orcid-badge:hover img {
    filter: brightness(0) invert(1);
}

.profiles-section h4 {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-link:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
}

.profile-link i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.profile-link:hover i {
    transform: scale(1.1);
}

/* Специальные стили для разных типов профилей */
.profile-link[href*="scholar.google"]:hover {
    background: #4285f4;
    border-color: #4285f4;
}

.profile-link[href*="researchgate"]:hover {
    background: #00d0af;
    border-color: #00d0af;
}

.profile-link[href*="scopus"]:hover {
    background: #ff6c00;
    border-color: #ff6c00;
}

.profile-link[href*="webofscience"]:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.profile-link[href*="linkedin"]:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.profile-link[href*="academia.edu"]:hover {
    background: #41454a;
    border-color: #41454a;
}

/* Секция партнеров в About */
.about-partners-section::before {
    background: #f56565 !important;
}

.about-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.about-partner-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #f1f3f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}

.about-partner-card:hover {
    border-color: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.about-partner-logo {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.about-partner-logo img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

.about-partner-info {
    flex: 1;
    width: 100%;
}

.about-partner-name {
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-partner-name a {
    color: inherit;
    text-decoration: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about-partner-name a:hover {
    color: #007bff;
}

.about-partner-description {
    color: #718096;
    line-height: 1.5;
    font-size: 0.95rem;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Пустой контент */
.empty-content {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-content p {
    margin: 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .member-header {
        gap: 2rem;
    }
    
    .member-photo {
        width: 200px;
    }
    
    .member-photo-img {
        height: 250px;
    }
    
    .member-info h2 {
        font-size: 1.6rem;
    }
    
    .member-info .section-content {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .content-page {
        padding: 1.5rem 0.5rem;
    }
    
    .page-header {
        margin-bottom: 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 2rem;
        margin: 0;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
    
    .section-content {
        font-size: 1rem;
    }
    
    .contacts-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .about-partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-partner-card {
        padding: 1.2rem;
    }
    
    .about-partner-logo {
        min-height: 60px;
    }
    
    .about-partner-logo img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .about-partner-name {
        font-size: 1rem;
    }
    
    .about-partner-description {
        font-size: 0.9rem;
    }
    
    .member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .member-photo {
        width: 180px;
        align-self: center;
    }
    
    .member-photo-img {
        height: 230px;
    }
    
    .member-info {
        width: 100%;
        text-align: left;
        padding-top: 0;
    }
    
    .member-info h2 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .member-info .section-content {
        text-align: left;
    }
    
    .member-profiles {
        text-align: left;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .profile-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-link {
        justify-content: center;
        padding: 0.8rem;
    }
    
    .orcid-badge {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.7rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
    
    .contacts-content {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
    
    .about-partner-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .about-partner-name {
        font-size: 0.95rem;
    }
    
    .about-partner-description {
        font-size: 0.85rem;
    }
    
    .member-header {
        gap: 1rem;
    }
    
    .member-photo {
        width: 150px;
    }
    
    .member-photo-img {
        height: 190px;
    }
    
    .member-info h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .member-info .section-content {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .member-profiles {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .orcid-badge {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .profile-link {
        font-size: 0.85rem;
        padding: 0.7rem;
    }
    
    .profiles-section h4 {
        text-align: center;
    }
    
    .orcid-section {
        text-align: center;
    }
}

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

.content-section {
    animation: fadeIn 0.5s ease-out;
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

/* Ссылки в контенте */
.section-content a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dotted #007bff;
    transition: all 0.2s;
}

.section-content a:hover {
    color: #0056b3;
    border-bottom-style: solid;
}

/* Списки в контенте */
.section-content ul,
.section-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Цитаты */
.section-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    font-style: italic;
    color: #495057;
}

/* Таблицы в контенте */
.section-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.section-content th,
.section-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.section-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.section-content tr:hover {
    background: #f8f9fa;
}

.content-section {
    max-height: none;
    overflow: visible;
}

.content-section.scrollable {
    max-height: 600px;
    overflow-y: auto;
}

.content-section.scrollable::-webkit-scrollbar {
    width: 8px;
}

.content-section.scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.content-section.scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.content-section.scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}
