/*
Theme Name: MARIAGRO
Theme URI: https://mariagro.com.ua
Author: MariAgro
Description: Official theme for MARIAGRO - feed production and food security platform for border communities
Version: 2.0
Text Domain: mariagro
*/

/* === RESET & BASE === */
:root {
    --color-burgundy: #722F37;
    --color-navy: #1B2A4A;
    --color-gold: #C5A55A;
    --color-white: #FFFFFF;
    --color-light-bg: #F8F6F0;
    --color-text: #2D2D2D;
    --color-light-text: #F5F5F5;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === SECTION TITLE === */
.section-title {
    text-align: center;
    color: var(--color-burgundy);
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 2px;
}

.section-title--white {
    color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-top: -20px;
    margin-bottom: 40px;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    height: var(--header-height);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-mari {
    color: #722F37;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}

.logo-agro {
    color: #C5A55A;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-burgundy);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: 2px solid var(--color-navy);
    color: var(--color-navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--color-navy);
    color: var(--color-white);
}

.lang-btn:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

body.menu-open .mobile-nav-overlay {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--color-white);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

body.menu-open .mobile-nav {
    right: 0;
}

.mobile-nav a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav a:hover {
    color: var(--color-burgundy);
}

.mobile-nav .lang-switcher {
    margin-top: 20px;
    justify-content: center;
}

/* === HERO === */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-navy) 0%, #0f1d36 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo .logo-mari {
    font-size: 48px;
}

.hero-logo .logo-agro {
    font-size: 48px;
}

.hero-slogan {
    color: var(--color-white);
    font-size: 18px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-gold);
}

.btn-gold:hover {
    background: #b8943d;
    border-color: #b8943d;
}

.btn-outline-gold {
    display: inline-block;
    background: transparent;
    color: var(--color-gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 6px;
    border: 2px solid var(--color-gold);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* === ABOUT === */
#about {
    background: var(--color-white);
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 40px;
    align-items: start;
}

.about-left h3 {
    color: var(--color-burgundy);
    font-size: 22px;
    margin-bottom: 12px;
    margin-top: 25px;
}

.about-left h3:first-child {
    margin-top: 0;
}

.about-left p {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.person-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 25px;
}

.person-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #e0ddd8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.person-photo svg {
    width: 60px;
    height: 60px;
    fill: #aaa;
}

.person-info h3 {
    color: var(--color-burgundy);
    font-size: 20px;
    margin-bottom: 8px;
    margin-top: 0;
}

.person-info p {
    font-size: 14px;
    line-height: 1.7;
}

.about-right h3 {
    color: var(--color-burgundy);
    font-size: 22px;
    margin-bottom: 12px;
}

.about-right p {
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

/* === HISTORY === */
#history {
    background: var(--color-light-bg);
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-burgundy);
    border: 3px solid var(--color-gold);
}

.timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-burgundy);
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

/* === PRODUCTS === */
#products {
    background: var(--color-white);
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-icon {
    margin-bottom: 20px;
}

.product-icon svg {
    width: 60px;
    height: 60px;
    fill: var(--color-burgundy);
}

.product-card h3 {
    color: var(--color-burgundy);
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card > p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.product-details {
    display: none;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text);
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: left;
}

.product-card.expanded .product-details {
    display: block;
}

.btn-details {
    display: inline-block;
    background: none;
    border: 1px solid var(--color-gold);
    color: var(--color-burgundy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: var(--color-gold);
    color: var(--color-navy);
}

/* === KNOWLEDGE CENTER === */
#knowledge {
    background: var(--color-light-bg);
    padding: 80px 0;
}

.knowledge-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.knowledge-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-3px);
}

.knowledge-card-img {
    height: 180px;
    background: #e0ddd8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.knowledge-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.knowledge-card-body {
    padding: 20px;
}

.knowledge-card-body h3 {
    font-size: 16px;
    color: var(--color-burgundy);
    margin-bottom: 8px;
}

.knowledge-card-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.knowledge-card-body .read-more {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 14px;
}

.knowledge-empty {
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.youtube-embed {
    margin-top: 40px;
    text-align: center;
}

.youtube-embed iframe {
    width: 100%;
    max-width: 700px;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

/* === GALLERY === */
#gallery {
    background: var(--color-white);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 300px;
    background: #F0EDE8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    opacity: 0.85;
}

.gallery-item svg {
    width: 40px;
    height: 40px;
    fill: #bbb;
    margin-bottom: 10px;
}

.gallery-item p {
    color: #999;
    font-size: 14px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

/* === ADVANTAGES === */
#advantages {
    background: var(--color-navy);
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.advantage-block {
    text-align: center;
    padding: 30px;
}

.advantage-icon {
    margin-bottom: 20px;
}

.advantage-icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 2;
}

.advantage-block h3 {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 10px;
}

.advantage-block p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
}

/* === PARTNERS === */
#partners {
    background: var(--color-light-bg);
    padding: 60px 0;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-block {
    text-align: center;
    max-width: 300px;
}

.partner-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
}

.partner-logo--iom {
    background: #0033A0;
}

.partner-logo--tms {
    background: #888;
}

.partner-block h3 {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 8px;
}

.partner-block p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* === ORDER === */
#order {
    background: var(--color-white);
    padding: 80px 0;
}

.order-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.order-step {
    text-align: center;
    max-width: 250px;
}

.step-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.order-step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
}

.order-contacts {
    text-align: center;
}

.order-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 15px;
    font-size: 16px;
    color: var(--color-burgundy);
    font-weight: 600;
}

.order-contacts a:hover {
    color: var(--color-gold);
}

.order-contacts svg {
    width: 24px;
    height: 24px;
}

.order-cta {
    margin-top: 30px;
}

/* === CONTACTS === */
#contacts {
    background: var(--color-navy);
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contacts-info h2 {
    color: var(--color-white);
}

.contacts-info p,
.contacts-info address {
    color: var(--color-light-text);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
    font-style: normal;
}

.contacts-info a {
    color: var(--color-gold);
}

.contacts-info a:hover {
    color: #d4b96a;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--color-gold);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
}

.contacts-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
}

/* === FOOTER === */
.site-footer {
    background: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-inner .lang-switcher .lang-btn {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner .lang-switcher .lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: var(--color-white);
}

.footer-inner .lang-switcher .lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-gold);
    color: var(--color-navy);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 20px;
    z-index: 900;
    transition: background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: #b8943d;
}

/* === FADE IN ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SINGLE POST === */
.single-post-wrap {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--color-burgundy);
}

.single-featured-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
}

.single-title {
    font-size: 32px;
    color: var(--color-burgundy);
    margin-bottom: 10px;
}

.single-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

.single-content {
    font-size: 16px;
    line-height: 1.8;
}

.single-content h2, .single-content h3 {
    color: var(--color-burgundy);
    margin: 25px 0 10px;
}

.single-content p {
    margin-bottom: 15px;
}

.single-content img {
    border-radius: 8px;
    margin: 15px 0;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--color-light-bg);
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
}

.author-box-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-box-photo svg {
    width: 30px;
    height: 30px;
    fill: #999;
}

.author-box-info h4 {
    color: var(--color-burgundy);
    margin-bottom: 5px;
}

.author-box-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.related-posts {
    margin-top: 50px;
}

.related-posts h3 {
    font-size: 22px;
    color: var(--color-burgundy);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* === ARCHIVE === */
.archive-wrap {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.archive-title {
    font-size: 32px;
    color: var(--color-burgundy);
    text-align: center;
    margin-bottom: 40px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.archive-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.archive-card-img {
    height: 200px;
    background: #e0ddd8;
    overflow: hidden;
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-body {
    padding: 20px;
}

.archive-card-body h3 {
    font-size: 18px;
    color: var(--color-burgundy);
    margin-bottom: 8px;
}

.archive-card-body h3 a:hover {
    color: var(--color-gold);
}

.archive-card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.archive-card-date {
    font-size: 12px;
    color: #999;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ddd;
    color: var(--color-text);
}

.pagination .current {
    background: var(--color-burgundy);
    color: var(--color-white);
    border-color: var(--color-burgundy);
}

/* === PAGE === */
.page-wrap {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.page-title {
    font-size: 32px;
    color: var(--color-burgundy);
    margin-bottom: 25px;
}

.page-content {
    font-size: 16px;
    line-height: 1.8;
}

/* === 404 === */
.error-404-wrap {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-404-code {
    font-size: 120px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 15px;
}

.error-404-text {
    font-size: 22px;
    color: var(--color-text);
    margin-bottom: 30px;
}

.error-404-link {
    display: inline-block;
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.error-404-link:hover {
    background: #5a242c;
    color: var(--color-white);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .header-inner .lang-switcher {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knowledge-posts {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }

    .hero-logo .logo-mari,
    .hero-logo .logo-agro {
        font-size: 48px;
    }

    .hero-slogan {
        font-size: 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 200px;
    }

    .order-steps {
        flex-direction: column;
        align-items: center;
    }

    .person-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .person-photo {
        width: 150px;
        height: 150px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-logo .logo-mari,
    .hero-logo .logo-agro {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-posts {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .partners-grid {
        flex-direction: column;
        align-items: center;
    }

    .error-404-code {
        font-size: 80px;
    }
}

@media (min-width: 1200px) {
    .hero-logo .logo-mari,
    .hero-logo .logo-agro {
        font-size: 72px;
    }
}