/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #00d4ff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
header {
    background: #111;
    padding: 15px 0;
    border-bottom: 1px solid #00d4ff33;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #00d4ff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00d4ff66;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #bbb;
    font-size: 16px;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: 0.3s;
}

.lang-btn.active {
    background: #00d4ff;
    color: #0a0a0a;
    border-color: #00d4ff;
    font-weight: bold;
}

.lang-btn:hover {
    border-color: #00d4ff;
    color: #fff;
}

/* Hero */
#hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at 30% 30%, #1a2a3a, #0a0a0a 80%);
    border-bottom: 1px solid #00d4ff33;
    animation: fadeIn 1.5s ease;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 30px #00d4ff66;
}

.subtitle {
    font-size: 1.4rem;
    color: #00d4ff;
    margin: 15px 0 30px;
    text-shadow: 0 0 15px #00d4ff44;
}

.btn-primary {
    display: inline-block;
    background: #00d4ff;
    color: #0a0a0a;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 0 20px #00d4ff55;
}

.btn-primary:hover {
    background: #00b8d4;
    transform: scale(1.05);
    box-shadow: 0 0 30px #00d4ff88;
}

/* About */
#about {
    padding: 80px 0;
    background: #0f0f0f;
}

.about-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-photo {
    flex: 1 1 250px;
    text-align: center;
}

.round-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 16px;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 40px #00d4ff44;
    transition: 0.4s;
    display: block;
}

.round-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 0 60px #00d4ff66;
}
.about-text {
    flex: 2 1 400px;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.about-text p {
    text-align: justify;   /* <-- ЭТО ГЛАВНОЕ ДОБАВЛЕНИЕ */
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.7;      /* добавим для лучшей читаемости */
}

.interests-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.interests-list li {
    background: #1a1a2e;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #00d4ff55;
    font-size: 14px;
    color: #ddd;
}

.contact-info {
    margin-top: 20px;
    padding: 15px 20px;
    background: #16161e;
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
}

.contact-info p {
    margin: 5px 0;
    font-size: 15px;
}

.contact-info span {
    color: #00d4ff;
    margin-right: 10px;
}

/* Другие страницы */
.page-section {
    padding: 60px 0;
    min-height: 70vh;
}

.page-section h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    border-bottom: 2px solid #00d4ff44;
    padding-bottom: 10px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #00d4ff55;
}

.timeline-item {
    margin-bottom: 40px;
}

.timeline-item .year {
    display: inline-block;
    background: #00d4ff22;
    color: #00d4ff;
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    border: 1px solid #00d4ff55;
}

.timeline-item .content h3 {
    font-size: 1.3rem;
    color: #fff;
}

.timeline-item .content p {
    color: #bbb;
}

.pub-list,
.grants-list,
.teaching-list,
.profile-links {
    list-style: none;
    padding: 0;
}

.pub-list li,
.grants-list li,
.teaching-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #14141c;
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
    transition: 0.3s;
}

.pub-list li:hover,
.grants-list li:hover {
    background: #1a1a2a;
    transform: translateX(5px);
}

.pub-title {
    display: block;
    font-weight: bold;
    color: #fff;
}

.pub-authors {
    color: #aaa;
    font-size: 14px;
}

.pub-journal {
    color: #00d4ff;
    font-size: 13px;
}

.pub-link {
    font-size: 13px;
    margin-left: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.contact-grid h3 {
    color: #00d4ff;
    margin-bottom: 10px;
}

.profile-links li {
    margin: 8px 0;
}

.profile-links a {
    color: #bbb;
    transition: 0.3s;
}

.profile-links a:hover {
    color: #00d4ff;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #222;
    color: #555;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .nav-links {
        gap: 10px;
        font-size: 14px;
    }
    .lang-switch {
        margin-left: auto;
    }
    nav {
        flex-wrap: wrap;
    }
    .timeline {
        padding-left: 15px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Иные проекты */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: #14141c;
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid #00d4ff33;
    transition: 0.4s;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow: 0 0 40px #00d4ff22;
}

.project-card h3 {
    color: #00d4ff;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-card p {
    color: #aaa;
    margin-bottom: 5px;
}

/* Гранты - детали */
.grant-detail {
    display: block;
    color: #88c0d0;
    font-size: 14px;
    margin-top: 4px;
    font-weight: normal;
}

.grants-list li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #14141c;
    border-radius: 10px;
    border-left: 3px solid #00d4ff;
    transition: 0.3s;
    list-style: none;
}

.grants-list li:hover {
    background: #1a1a2a;
    transform: translateX(5px);
}

.grants-list li strong {
    color: #fff;
    font-size: 1.05rem;
}
/* Сертификаты */
.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #14141c;
    border-radius: 10px;
    border-left: 3px solid #00d4ff;
    transition: 0.3s;
}

.cert-list li:hover {
    background: #1a1a2a;
    transform: translateX(5px);
}

.cert-title {
    display: block;
    font-weight: bold;
    color: #fff;
    font-size: 1.05rem;
}

.cert-desc {
    display: block;
    color: #aaa;
    font-size: 14px;
    margin-top: 4px;
}

.cert-meta {
    display: inline-block;
    color: #00d4ff;
    font-size: 13px;
    margin-top: 6px;
    background: #00d4ff11;
    padding: 2px 12px;
    border-radius: 12px;
    border: 1px solid #00d4ff33;
}