/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ И ЦВЕТА
   ========================================= */
:root {
    --bg-color: #FFFAF0;
    --header-bg: #e7efed;
    --text-main: #333333;
    --text-muted: #191970;
    --accent: #34495E;
    --accent-hover: #2C3E50;
    --border-color: #DFE6E9;
    --link-color: #5D6D7E;
}

/* ЗАЩИТА ОТ "ПРЫЖКОВ" ЭКРАНА */
html {
    overflow-y: scroll; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 100px; 
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    color: var(--accent);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* =========================================
   ШАПКА САЙТА
   ========================================= */
.header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; 
}

/* ПОЛНОСТЬЮ СКРЫВАЕМ КНИГУ ВЕЗДЕ */
.linguistic-logo {
    display: none !important;
}

.profile-img-mini {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-info h1 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap; 
}

.profile-info .title {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
    white-space: nowrap; 
}

.header-right {
    display: flex;
    align-items: center;
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.top-nav ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 5px;
    white-space: nowrap; 
}

.top-nav ul li a:hover,
.top-nav ul li a.active {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
}

.lang-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 30px;
    border-left: 1px solid var(--border-color);
    padding-left: 30px;
}

.lang-switcher a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 3px;
    white-space: nowrap;
}

.lang-switcher a:hover,
.lang-switcher a.active-lang {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
}

/* =========================================
   ОСНОВНОЙ КОНТЕНТ (ЦЕНТРИРОВАНИЕ)
   ========================================= */
.content {
    max-width: 800px;
    margin: 0 auto; /* Эта команда держит текст строго по центру! */
    padding: 40px 20px;
}

.section {
    margin-bottom: 40px;
    background: transparent; 
    padding: 0;              
    border-radius: 0;
    box-shadow: none;        
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: none;     
    padding-bottom: 0;
    display: block;
    color: var(--accent);
}

.section p {
    margin-bottom: 15px;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--accent);
    line-height: 1.7;
    margin-bottom: 25px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 30px;
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
}

.publication-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.publication-item:last-child {
    border-bottom: none;
}

ul.timeline {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}

ul.timeline li {
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

ul.timeline li::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
}

/* =========================================
   СЛОЖНЫЕ БЛОКИ (Research & Contact)
   ========================================= */
.research-container {
    display: flex;
    gap: 40px; 
    align-items: flex-start;
}

.research-content-left {
    flex: 1; 
}

.research-photo-right {
    flex: 0 0 350px; 
}

.research-photo-right img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin-top: 30px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
}

.contact-form input, 
.contact-form textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--accent);
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: var(--accent-hover);
}

/* =========================================
   ГОРИЗОНТАЛЬНАЯ ФОТО-ЛЕНТА
   ========================================= */
.photo-bar-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.photo-scroll-wrapper {
    width: 100%;
    overflow-x: auto; 
    padding-bottom: 15px; 
    cursor: grab;
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.photo-scroll-wrapper::-webkit-scrollbar {
    display: none; 
}

.photo-bar {
    display: flex; 
    gap: 15px;
}

.photo-item {
    flex: 0 0 auto; 
    height: 300px; 
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    background-color: #f8f9fa; 
}

.photo-item img {
    width: auto; 
    height: 100%; 
    object-fit: contain; 
    transition: transform 0.3s ease;
    display: block;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9); 
    border: 1px solid var(--border-color);
    border-radius: 50%; 
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15); 
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background-color: #fff;
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.left-btn { left: -22px; }
.right-btn { right: -22px; }

/* =========================================
   ПОДВАЛ
   ========================================= */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   АДАПТИВНОСТЬ (Планшеты и Мобильные)
   ========================================= */
@media (min-width: 901px) {
    .top-nav ul { gap: 15px; }
    .top-nav ul li a { font-size: 0.85rem; }
}

@media (max-width: 900px) {
    .header {
        position: fixed;
        padding: 15px 15px;
        flex-direction: column;
        gap: 15px;
    }
    body { padding-top: 240px; }
    
    .profile-mini {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .profile-img-mini {
        width: 60px;
        height: 60px;
    }
    .profile-info h1 {
        font-size: 1.2rem;
        white-space: normal; 
    }
    .profile-info .title {
        font-size: 0.8rem;
        white-space: normal;
    }
    .header-right {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
    }
    .top-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .top-nav ul li a { font-size: 0.85rem; }
    
    .lang-switcher {
        margin-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 15px;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .content { padding: 20px 15px; }
    .section { padding: 25px 20px; }
    .research-container { flex-direction: column; }
    .research-photo-right {
        flex: none;
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .linguistic-logo { display: none !important; }
    .gallery-btn { display: none; }
}

@media (max-width: 600px) {
    .photo-item {
        height: 250px;
        flex: 0 0 250px;
    }
}/* --- ЗАЩИТА ФОТОГРАФИЙ ОТ КОПИРОВАНИЯ --- */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
