/* ===== CSS и базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #333;
    background-color: #c8e4ed;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Типография ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    color: #597d89;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: #597d89;
    transition: color 0.3s ease;
}

a:hover {
    color: #4a6a75;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #597d89;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #4a6a75;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #597d89;
    color: #597d89;
}

.btn-secondary:hover {
    background-color: #597d89;
    color: white;
}

/* ===== Шапка сайта ===== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #597d89;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 600;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: #4a6a75;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #597d89;
}

/* ===== Хлебные крошки ===== */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: #597d89;
}

.breadcrumbs span {
    color: #666;
}

/* ===== Герой-секция биографии ===== */
.bio-hero {
    padding: 60px 0;
    background-color: #fafdfd;
}

.bio-hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.bio-hero-text {
    flex: 1;
}

.bio-hero h1 {
    font-size: 3rem;
    color: #597d89;
    margin-bottom: 1rem;
}

.bio-tagline {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
}

.bio-hero-image {
    flex: 0 0 400px;
}

.main-bio-photo {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===== Таймлайн биографии ===== */
.bio-content {
    padding: 60px 0;
}

.bio-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.bio-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #597d89;
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 180px;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    background: #597d89;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    min-width: 140px;
    text-align: center;
    font-size: 1.1rem;
    z-index: 2;
}

.timeline-content h2 {
    color: #597d89;
    margin-bottom: 1.5rem;
}

.timeline-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.timeline-image {
    margin-top: 1.5rem;
}

.timeline-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bio-quote {
    border-left: 4px solid #597d89;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* ===== Статистика публикаций ===== */
.publication-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #597d89;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
}

/* ===== Философия творчества ===== */
.writing-philosophy {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid #597d89;
}

.writing-philosophy h3 {
    color: #597d89;
    margin-bottom: 1.5rem;
}

.writing-philosophy ul {
    list-style-type: none;
}

.writing-philosophy li {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
}

.writing-philosophy li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #597d89;
    font-size: 1.2rem;
}

/* ===== Блок с фактами ===== */
.bio-facts {
    background: linear-gradient(135deg, #597d89 0%, #4a6a75 100%);
    color: white;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 15px;
}

.bio-facts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.fact-card {
    padding: 2rem 1rem;
}

.fact-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.9;
}

.fact-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.fact-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== Влияния ===== */
.influences {
    margin: 5rem 0;
}

.influences h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.influences-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.influence-item {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.influence-item:hover {
    transform: translateY(-5px);
}

.influence-item h3 {
    color: #597d89;
    margin-bottom: 1.5rem;
}

.influence-item p {
    line-height: 1.8;
}

/* ===== Профессиональный опыт ===== */
.professional-experience {
    margin: 5rem 0;
}

.professional-experience h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.experience-item {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

.experience-item h3 {
    color: #597d89;
    margin-bottom: 1.5rem;
}

.experience-item p {
    line-height: 1.8;
}

/* ===== Хобби и увлечения ===== */
.hobbies {
    margin: 5rem 0;
}

.hobbies h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.hobby-item {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-5px);
}

.hobby-item i {
    font-size: 2.5rem;
    color: #597d89;
    margin-bottom: 1.5rem;
    display: block;
}

.hobby-item h3 {
    color: #597d89;
    margin-bottom: 1.5rem;
}

.hobby-item p {
    line-height: 1.8;
}

/* ===== Призыв к действию ===== */
.bio-cta {
    background-color: #f8f9fa;
    padding: 5rem 0;
    text-align: center;
}

.bio-cta h2 {
    margin-bottom: 1rem;
}

.bio-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Подвал сайта ===== */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 2rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #bdc3c7;
}

.footer-nav a:hover {
    color: #ecf0f1;
}

/* ===== Адаптивность (Mobile First) ===== */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .bio-hero h1 {
        font-size: 2.5rem;
    }
    
    .bio-hero-content {
        gap: 3rem;
    }
    
    .bio-hero-image {
        flex: 0 0 350px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Адаптивность для страницы биографии */
    .bio-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .bio-hero-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    
    .bio-timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        padding-left: 160px;
    }
    
    .timeline-year {
        min-width: 70px;
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
    
    .publication-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .experience-grid,
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .bio-hero h1 {
        font-size: 2.2rem;
    }
    
    .bio-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 140px;
    }
    
    .timeline-year {
        min-width: 60px;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .influences-list {
        grid-template-columns: 1fr;
    }
    
    .timeline-image img {
        max-width: 100%;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ BIO-СТРАНИЦЫ ===== */
.bio-page {
    background-color: #c8e4ed;
}

/* Улучшение читаемости текста */
.timeline-text p {
    text-align: justify;
    line-height: 1.8;
}

/* Стили для изображений в таймлайне */
.timeline-image {
    text-align: center;
}

.timeline-image img {
    transition: transform 0.3s ease;
}

.timeline-image img:hover {
    transform: scale(1.02);
}

/* Анимация появления элементов */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }
.timeline-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для фактов с иконками */
.fact-card {
    transition: transform 0.3s ease;
}

.fact-card:hover {
    transform: translateY(-5px);
}

.fact-card i {
    transition: transform 0.3s ease;
}

.fact-card:hover i {
    transform: scale(1.1);
}

/* Улучшение внешнего ссылок в навигации */
.nav a {
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #597d89;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 0.5rem;
}

/* Специальные стили для широких изображений в таймлайне */
.timeline-image.wide-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}