@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;500;600&family=Bitter:wght@400;500;600&family=Libre+Franklin:wght@300;400;500;600&display=swap');

:root {
    --color-bg: #f5f0eb;
    --color-bg-alt: #eae3da;
    --color-bg-card: #ffffff;
    --color-primary: #3d6b4f;
    --color-primary-dark: #2c4e39;
    --color-accent: #c4883a;
    --color-accent-light: #d9a760;
    --color-text: #2e2e2e;
    --color-text-light: #5a5a5a;
    --color-text-muted: #8a8a8a;
    --color-border: #d8d0c5;
    --color-border-light: #e8e2d9;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
    --font-accent: 'Bitter', Georgia, serif;
    --font-nav: 'Libre Franklin', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.3;
}

h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
    margin-bottom: 1.2em;
    font-size: 1.05rem;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1140px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-desktop a {
    font-family: var(--font-nav);
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-desktop a:hover {
    color: #fff;
}

.nav-desktop a:hover::after {
    width: 100%;
}

.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-primary-dark);
    z-index: 1050;
    transition: right var(--transition);
    padding: 80px 32px 32px;
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    font-family: var(--font-nav);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.5px;
}

.mobile-nav a:hover {
    color: var(--color-accent-light);
}

.mobile-nav-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.mobile-nav-section-title {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}

.hero {
    background: linear-gradient(170deg, var(--color-primary-dark) 0%, var(--color-primary) 45%, var(--color-bg-alt) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 32px;
    font-family: var(--font-body);
    font-weight: 300;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-meta-label {
    font-family: var(--font-nav);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
}

.hero-meta-value {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    color: var(--color-accent-light);
    font-weight: 500;
}

.section {
    padding: 60px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: var(--font-nav);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 40px;
}

.intro-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.intro-block img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.intro-text p {
    color: var(--color-text-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

.article-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-nav);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-body h3 {
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    flex: 1;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-nav);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 16px;
    transition: gap var(--transition);
}

.article-card-link:hover {
    gap: 10px;
    color: var(--color-accent);
}

.article-card-link svg {
    width: 16px;
    height: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-primary);
}

.info-card h4 {
    margin-bottom: 12px;
    font-family: var(--font-accent);
}

.info-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.article-page {
    padding: 48px 0 60px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    margin-bottom: 16px;
}

.article-date {
    font-family: var(--font-nav);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
}

.article-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-content p {
    color: var(--color-text-light);
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px 24px;
    color: var(--color-text-light);
}

.article-content li {
    margin-bottom: 8px;
    font-size: 1.02rem;
}

.article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--color-text-light);
}

.article-img-block {
    margin: 32px 0;
}

.article-img-block img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.article-img-caption {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-style: italic;
}

.article-summary {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-top: 40px;
}

.article-summary h4 {
    margin-bottom: 16px;
    font-family: var(--font-accent);
}

.article-summary ul {
    list-style: none;
    padding: 0;
}

.article-summary li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.article-summary li:last-child {
    border-bottom: none;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.article-nav a {
    font-family: var(--font-nav);
    font-size: 0.92rem;
    font-weight: 500;
}

.about-hero {
    background: linear-gradient(170deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    padding: 60px 0 50px;
}

.about-hero h1 {
    color: #fff;
    margin-bottom: 12px;
}

.about-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.about-content {
    padding: 48px 0 60px;
}

.about-content h2 {
    margin-top: 36px;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--color-text-light);
}

.contact-page {
    padding: 48px 0 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 32px;
}

.contact-info-block {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.contact-info-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-info-label {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.contact-info-value {
    font-size: 1.05rem;
    color: var(--color-text);
    font-weight: 500;
}

.contact-info-value a {
    color: var(--color-primary);
}

.contact-text h2 {
    margin-bottom: 16px;
}

.contact-text p {
    color: var(--color-text-light);
}

.policy-page {
    padding: 48px 0 60px;
}

.policy-page h2 {
    margin-top: 36px;
    margin-bottom: 12px;
}

.policy-page h3 {
    margin-top: 24px;
    margin-bottom: 10px;
}

.policy-page p,
.policy-page li {
    color: var(--color-text-light);
    font-size: 0.98rem;
}

.policy-page ul {
    margin: 12px 0 20px 24px;
}

.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-about p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-title {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--color-accent-light);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-primary-dark);
    color: #fff;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie {
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accept {
    background: var(--color-accent);
    color: #fff;
}

.btn-accept:hover {
    background: var(--color-accent-light);
}

.btn-reject {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-reject:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

.img-credit {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

@media (max-width: 900px) {
    .nav-desktop {
        display: none;
    }

    .burger-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .intro-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }

    .article-hero-img {
        height: 260px;
    }

    .article-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-meta {
        gap: 16px;
    }

    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }

    .article-card-img {
        height: 180px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .intro-block img {
        height: 240px;
    }
}
