/* ===== ОСНОВНЫЕ СТИЛИ (ГОТИЧЕСКИЙ СТИЛЬ) ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comforter&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1A1619;
    font-family: 'EB Garamond', 'Georgia', serif;
    color: #B8B0A3;
    line-height: 1.5;
    font-size: 18px;
}

/* ===== ЛЕВАЯ ПАНЕЛЬ ===== */
.sidebar {
    width: 260px;
    background: #0F0D10;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding: 20px 0 20px 0;
    border-right: 1px solid #4A2E2B;
    overflow-y: auto;
}

.logo {
    text-align: center;
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 2px;
    color: #A67C52;
    margin-bottom: 25px;
    font-family: 'Comforter', cursive;
}

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

.sidebar ul li {
    margin: 0;
}

.sidebar ul li a {
    color: #9A9285;
    text-decoration: none;
    display: block;
    padding: 8px 25px;
    transition: 0.2s;
    font-family: 'Caveat', cursive;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.sidebar ul li a:hover {
    background: #2A1E20;
    color: #D4AF37;
    border-left: 2px solid #A67C52;
}

/* Картинка в меню */
.sidebar img {
    max-width: 140px;
    margin-bottom: 15px;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.content {
    margin-left: 260px;
    padding: 40px 50px;
    min-height: 100vh;
    background-image: url('fon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(15, 13, 16, 0.65);
    background-blend-mode: multiply;
    color: #D6D1C4;
}
/* ===== ФОН ДЛЯ ЛАБОРАТОРИИ ===== */
.page-lab .content {
    background-image: url('fon-lab.jpg');  /* имя твоей новой картинки */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: rgba(15, 13, 16, 0.65);
    background-blend-mode: multiply;
}
.content h1 {
    text-align: center;
    display: block;
    width: 100%;
}

/* ===== ЗАГОЛОВКИ ===== */
h1 {
    font-family: 'Cormorant Infant', 'Cinema Decorative', serif;  /* ← изменили */
    font-size: 42px;
    color: #C2A87D;
    margin-bottom: 20px;
    border-bottom: 1px solid #4A2E2B;
    display: inline-block;
}

h2, h3 {
    color: #C2A87D;
    font-family: 'Cormorant Infant', 'Cinema Decorative', serif; /* ← изменили */
}

/* ===== СТИХИ ===== */
.stih {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 1px solid #4A2E2B;
}

.stih::after {
    display: none;
}

/* ===== ССЫЛКИ ===== */
.content a {
    color: #A67C52;
    text-decoration: none;
    border-bottom: 1px dotted;
}

.content a:hover {
    color: #D4AF37;
}

.back-home {
    display: inline-block;
    margin-top: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

/* ===== РАЗДЕЛИТЕЛЬ РАЗДЕЛОВ ===== */
.early-works-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 30px 0;
    border-top: 1px solid #4A2E2B;
    border-bottom: 1px solid #4A2E2B;
    padding: 12px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #4A2E2B;
    opacity: 0.5;
}

.divider-text {
    font-family: 'Cinema Decorative', 'Cormorant Garamond', serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: #A67C52;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 15px;
}

/* ===== АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ ===== */
@media (max-width: 700px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #4A2E2B;
        padding: 15px 0;
        text-align: center;
    }
    .sidebar ul li a {
        display: inline-block;
        padding: 8px 15px;
    }
    .content {
        margin-left: 0;
        padding: 30px 25px;
    }
    .early-works-divider {
        gap: 10px;
        padding: 8px 0;
    }
    .divider-text {
        font-size: 14px;
        padding: 0 8px;
    }
    .sidebar ul li a {
        font-family: 'Caveat', 'Comic Neue', 'Segoe Script', cursive !important;
    }
    .logo {
        font-family: 'Comforter', 'Georgia', serif !important;
    }
}/* Цитата в центральном поле */
.citation {
    margin-top: 48px;
    padding: 20px 30px;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: #A67C52;
    text-align: center;
    border-top: 1px solid #4A2E2B;
    border-bottom: 1px solid #4A2E2B;
    background: rgba(15, 13, 16, 0.3);
    border-radius: 8px;
}

.citation-author {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #9A9285;
    letter-spacing: 1px;
}