* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #c9a961;
    --accent-color: #5d7a8f;
    --bg-cream: #f8f6f2;
    --bg-beige: #ede8e0;
    --bg-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-beige);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-list a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-section,
.contact-hero {
    position: relative;
    height: 65vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Library_bookshelf.jpg/1920px-Library_bookshelf.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.88) 0%, rgba(93, 122, 143, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bg-white);
    padding: 2rem;
    max-width: 850px;
}

.hero-content h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    font-family: 'Lora', serif;
}

.intro-section {
    padding: 6rem 0;
    background: var(--bg-beige);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-family: 'Lora', serif;
}

.features-section {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-md);
}

.feature-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.12);
}

.feature-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.85rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.feature-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.feature-link:hover {
    color: var(--primary-color);
}

.articles-preview {
    padding: 6rem 0;
    background: var(--bg-beige);
}

.articles-preview h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.6rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-md);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
}

.article-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.article-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--accent-color);
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.article-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-white);
    text-align: center;
}

.cta-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-family: 'Lora', serif;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 1.1rem;
}

.cta-button:hover {
    background: #b89a50;
    transform: translateY(-3px);
}

.contact-section {
    padding: 6rem 0;
    background: var(--bg-cream);
}

.contact-intro {
    max-width: 850px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.9;
    font-family: 'Lora', serif;
}

.contact-cards-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 25px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.contact-card:nth-child(1) {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card:nth-child(2) {
    max-width: 550px;
    margin-left: auto;
    margin-right: 10%;
}

.contact-card:nth-child(3) {
    max-width: 580px;
    margin-left: 8%;
    margin-right: auto;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-md);
}

.contact-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.icon-square {
    width: 90px;
    height: 90px;
    border: 3px solid var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.icon-circle {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.icon-circle svg {
    width: 36px;
    height: 36px;
}

.contact-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-email {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    word-break: break-word;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--accent-color);
}

.faq-section {
    padding: 6rem 0;
    background: var(--bg-beige);
}

.faq-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.6rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 4rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.faq-item h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.main-footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 15px var(--shadow-md);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 0.95rem;
}

.cookie-btn.accept {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.cookie-btn.accept:hover {
    background: #b89a50;
}

.cookie-btn.reject {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--bg-white);
}

.content-section {
    padding: 5rem 0;
    background: var(--bg-cream);
}

.content-section h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.content-section h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px var(--shadow);
}

.content-section ul,
.content-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-light);
}

.content-section li {
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-color);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 2rem;
        box-shadow: 0 4px 15px var(--shadow-md);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-card:nth-child(1),
    .contact-card:nth-child(2),
    .contact-card:nth-child(3) {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
