/* ===== Сброс и базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #f5f0e8;
    color: #2c2c2c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Навигация ===== */
nav {
    background: linear-gradient(135deg, #1a3a2a, #2d5a3d);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

nav .logo {
    color: #e8d5a3;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 18px 0;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

nav ul li a {
    display: block;
    color: #e8d5a3;
    text-decoration: none;
    padding: 20px 24px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-bottom: 3px solid #e8d5a3;
}

/* ===== Основной контент ===== */
main {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.page-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1a3a2a;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 16px;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1a3a2a, #e8d5a3);
    margin: 16px auto 0;
    border-radius: 2px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 36px;
}

/* ===== Биография ===== */
.bio-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 32px;
}

.bio-card .card-header {
    background: linear-gradient(135deg, #1a3a2a, #2d5a3d);
    color: #e8d5a3;
    padding: 20px 28px;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.bio-card .card-body {
    padding: 28px;
}

.bio-intro {
    display: flex;
    gap: 30px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.bio-photo {
    width: 200px;
    min-width: 200px;
    height: 260px;
    background: linear-gradient(145deg, #d4c5a0, #b8a882);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #1a3a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, #1a3a2a, #e8d5a3, #1a3a2a);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #e8d5a3;
    border: 3px solid #1a3a2a;
    border-radius: 50%;
}

.timeline-item h3 {
    font-size: 1.1rem;
    color: #1a3a2a;
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555;
}

/* ===== Произведения ===== */
.works-section {
    margin-bottom: 36px;
}

.works-section h2 {
    font-size: 1.4rem;
    color: #1a3a2a;
    padding: 14px 24px;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    border-left: 5px solid #1a3a2a;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.works-list {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    margin-top: 0;
}

.works-list ul {
    list-style: none;
    padding: 0;
}

.works-list ul li {
    padding: 14px 28px;
    font-size: 1.02rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0ebe3;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.works-list ul li:last-child {
    border-bottom: none;
}

.works-list ul li .year {
    color: #1a3a2a;
    font-weight: bold;
    white-space: nowrap;
    font-size: 0.95rem;
    background: #f0ebe3;
    padding: 3px 10px;
    border-radius: 4px;
}

.works-list ul li:hover {
    background-color: #faf6ee;
}

/* ===== Цитата ===== */
.quote-block {
    background: linear-gradient(135deg, #1a3a2a, #2d5a3d);
    color: #e8d5a3;
    padding: 32px;
    border-radius: 12px;
    margin: 36px 0;
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

.quote-block::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: 8px;
    left: 20px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* ===== Футер ===== */
footer {
    background: #1a3a2a;
    color: #998866;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: auto;
}
