:root {
    --deep-brown: #2d1b0d;
    --gold: #d4af37;
    --parchment: #fdf5e6;
    --accent-red: #8b0000;
}

body {
    font-family: 'Old Standard TT', serif;
    background-color: var(--parchment);
    color: #1a1a1a;
    margin: 0;
    line-height: 1.8;
}

/* Header */
header {
    background: var(--deep-brown);
    padding: 20px 0;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

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

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--gold);
}

/* Hero Section - ИСПОЛЬЗУЙТЕ ГЕНЕРИРОВАННУЮ КАРТИНКУ hero.jpg */
.hero {
    height: 80vh;
    background: url('hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65); /* Более темное наложение для читаемости */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 5rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.subtitle {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1rem;
}

/* Layout */
.content-section {
    padding: 100px 20px;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--deep-brown);
    margin-bottom: 50px;
    border-bottom: 1px solid var(--gold);
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

/* Секция История */
.history-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.text-side { flex: 1.5; }
.image-side { flex: 1; text-align: center; }

/* Тематические картинки */
.themed-img {
    width: 100%;
    border-radius: 2px;
    filter: sepia(0.6) contrast(1.1); /* Добавляет эффект старины к любой картинке */
    box-shadow: 15px 15px 0px var(--gold);
}

.themed-img-grid {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: sepia(0.7) contrast(1.1);
    border: 3px solid #fff;
    margin-bottom: 20px;
}

.themed-img-doc {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border: 1px solid #999;
    filter: sepia(0.5);
    float: left; /* Текст обтекает картинку */
    margin-right: 30px;
}

.caption {
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 25px;
    color: #555;
}

/* Грид-секция */
.paper-bg {
    background: #f2ebd9;
    background-image: url('https://www.transparenttextures.com/patterns/old-paper.png');
}

.grid-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.grid-item {
    background: rgba(255,255,255,0.7);
    padding: 40px;
    border: 1px solid #d4c4a8;
}

/* Документ */
.document-wrap {
    background: #fff;
    padding: 60px;
    border: 1px solid #ccc;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

.old-font {
    font-family: 'Marck Script', cursive;
    font-size: 1.7rem;
    border-left: 4px solid var(--accent-red);
    padding-left: 25px;
    margin: 30px 0;
    line-height: 1.4;
}

footer {
    background: var(--deep-brown);
    color: #888;
    text-align: center;
    padding: 50px;
    font-size: 0.85rem;
}