* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f3efe8;
    color: #222;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: linear-gradient(rgba(86, 36, 36, 0.82), rgba(70, 28, 28, 0.88)),
                url("images/hero.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    box-shadow: inset 0 -10px 30px rgba(0,0,0,0.3);
}

.site-header .overlay {
    padding: 85px 20px;
}

.site-header h1 {
    font-size: 64px;
    margin-bottom: 16px;
    font-family: Georgia, serif;
}

.site-header .subtitle {
    font-size: 28px;
    margin-bottom: 18px;
}

.site-header .quote {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    font-style: italic;
}

/* NAVIGATION */
.main-nav {
    background-color: #6f1919;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #e6d3b3;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav ul li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: #a52a2a;
    transform: translateY(-2px);
}

.main-nav ul li a.active {
    background-color: #f0dfc8;
    color: #6f1919;
    border-radius: 4px;
}

/* INTRO */
.intro-section {
    padding: 60px 0 40px;
}

.intro-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.intro-image,
.intro-text {
    flex: 1 1 450px;
}

.intro-image img {
    width: 100%;
    max-width: 520px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.intro-text h2 {
    font-size: 36px;
    color: #5e1d1d;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.intro-text p {
    font-size: 21px;
    margin-bottom: 18px;
}

.btn {
    display: inline-block;
    margin-top: 10px;
    padding: 14px 28px;
    background-color: #9e2f2f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover {
    background-color: #741f1f;
}

/* SECTION TITLE */
.section-title {
    text-align: center;
    font-size: 38px;
    color: #5e1d1d;
    margin-bottom: 35px;
    font-family: Georgia, serif;
}

/* CARDS */
.sections-preview {
    padding: 30px 0 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    gap: 25px;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 280px;
    background-color: white;
    padding: 28px 24px;
    border-left: 6px solid #9e2f2f;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    transition: 0.3s;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.card:last-child {
    grid-column: 2 / span 2;
    justify-self: center;
}

.card h3 {
    font-size: 28px;
    color: #5e1d1d;
    margin-bottom: 14px;
    font-family: Georgia, serif;
}

.card p {
    font-size: 19px;
    margin-bottom: 18px;
}

.card a {
    text-decoration: none;
    color: #9e2f2f;
    font-weight: bold;
    font-size: 17px;
}

.card a:hover {
    text-decoration: underline;
}

/* HIGHLIGHT SECTION */
.highlight-section {
    background-color: #e7ddd2;
    padding: 55px 0;
    text-align: center;
}

.highlight-section h2 {
    font-size: 36px;
    color: #5e1d1d;
    margin-bottom: 18px;
    font-family: Georgia, serif;
}

.highlight-section p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 21px;
}

/* FOOTER */
footer {
    background-color: #2e1111;
    color: white;
    text-align: center;
    padding: 22px 0;
    font-size: 16px;
}

/* PAGE HEADER FOR INNER PAGES */
.page-header {
    background: linear-gradient(rgba(86, 36, 36, 0.82), rgba(70, 28, 28, 0.88)),
                url("images/dobrichka-epopeya.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
}

.small-header .overlay {
    padding: 70px 20px;
}

/* PAGE INTRO */
.page-intro {
    background-color: white;
    padding: 30px;
    margin: 40px 0 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.page-intro h2 {
    font-size: 34px;
    color: #5e1d1d;
    margin-bottom: 16px;
    font-family: Georgia, serif;
}

.page-intro p {
    font-size: 20px;
}

/* MYTHS PAGE */
.myths-page {
    padding-bottom: 60px;
}

.myth-fact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-bottom: 28px;
}

.myth-side,
.fact-side {
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    min-height: 220px;
}

.myth-side {
    background: linear-gradient(180deg, #7d2121, #5f1717);
    color: white;
    border-left: 8px solid #e2b6b6;
}

.fact-side {
    background: linear-gradient(180deg, #f7f1e8, #efe2cf);
    color: #2a1b1b;
    border-left: 8px solid #9e2f2f;
}

.myth-side h3,
.fact-side h3 {
    font-size: 30px;
    margin-bottom: 16px;
    font-family: Georgia, serif;
}

.myth-side p,
.fact-side p {
    font-size: 20px;
    line-height: 1.7;
}

/* HIGHLIGHT BLOCK */
.fact-highlight {
    margin-top: 45px;
    background-color: #e7ddd2;
    padding: 35px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.fact-highlight h2 {
    font-size: 34px;
    color: #5e1d1d;
    margin-bottom: 18px;
    font-family: Georgia, serif;
}

.fact-highlight p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.7;
}

/* PEOPLE PAGE */
.people-page {
    padding-bottom: 60px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.person-card {
    background-color: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.person-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
    filter: sepia(30%) contrast(90%);
}

.person-card h3 {
    font-size: 22px;
    color: #5e1d1d;
    margin: 15px;
    font-family: Georgia, serif;
}

.person-card p {
    font-size: 17px;
    margin: 0 15px 20px;
    line-height: 1.6;
}

/* HISTORY PAGE */
.history-page {
    padding-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 4px;
    background-color: #9e2f2f;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    right: -9px;
    background-color: #f3efe8;
    border: 4px solid #9e2f2f;
    top: 28px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -9px;
}

.timeline-content {
    padding: 22px 24px;
    background-color: white;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #9e2f2f;
}

.timeline-date {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    background-color: #9e2f2f;
    color: white;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
}

.timeline-content h3 {
    font-size: 28px;
    color: #5e1d1d;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}

.timeline-content p {
    font-size: 18px;
    line-height: 1.7;
}

/* GALLERY PAGE */
.gallery-page {
    padding-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 35px 0 45px;
}

.gallery-card {
    background-color: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
    filter: sepia(18%) contrast(95%);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card figcaption {
    padding: 18px 20px;
    font-size: 17px;
    line-height: 1.6;
    color: #2a1b1b;
    border-top: 4px solid #9e2f2f;
}

/* ABOUT PAGE */
.about-page {
    padding-bottom: 60px;
}

.about-section {
    background-color: white;
    padding: 25px 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    border-left: 6px solid #9e2f2f;
}

.about-section h2 {
    font-size: 28px;
    color: #5e1d1d;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}

.about-section p {
    font-size: 18px;
    margin-bottom: 10px;
}

.about-section ul {
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 8px;
    font-size: 17px;
}

/* RESPONSIVE GALLERY */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card img {
        height: 220px;
    }

    .gallery-card figcaption {
        font-size: 16px;
    }
}

/* RESPONSIVE TIMELINE */
@media (max-width: 900px) {
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 15px;
    }

    .timeline-item.right,
    .timeline-item.left {
        left: 0;
    }

    .timeline-item::after,
    .timeline-item.right::after {
        left: 11px;
    }

    .timeline-content h3 {
        font-size: 24px;
    }

    .timeline-content p {
        font-size: 17px;
    }
}

/* RESPONSIVE FOR MYTHS PAGE */
@media (max-width: 900px) {
    .myth-fact-box {
        grid-template-columns: 1fr;
    }

    .myth-side,
    .fact-side {
        min-height: auto;
    }

    .page-intro h2,
    .fact-highlight h2 {
        font-size: 28px;
    }

    .myth-side h3,
    .fact-side h3 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .page-intro p,
    .myth-side p,
    .fact-side p,
    .fact-highlight p {
        font-size: 17px;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .site-header h1 {
        font-size: 44px;
    }

    .site-header .subtitle {
        font-size: 22px;
    }

    .intro-text h2 {
        font-size: 34px;
    }

    .section-title,
    .highlight-section h2 {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .site-header .overlay {
        padding: 60px 15px;
    }

    .site-header h1 {
        font-size: 34px;
    }

    .site-header .subtitle {
        font-size: 18px;
    }

    .site-header .quote {
        font-size: 15px;
    }

    .main-nav ul li a {
        padding: 14px 16px;
        font-size: 16px;
    }

    .intro-text h2 {
        font-size: 28px;
    }

    .intro-text p,
    .card p,
    .highlight-section p {
        font-size: 17px;
    }

    .card h3 {
        font-size: 23px;
    }

    .btn {
        font-size: 16px;
        padding: 12px 22px;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .card {
        max-width: 100%;
        margin: 0 auto;
    }

    .card:last-child {
        grid-column: auto;
        justify-self: center;
    }
}