/* Scandinavian Hygge Eco-Magazine Layout */
* {
    box-sizing: border-box;
}

body {
    margin: 0; padding: 0;
    background-color: #F7F5F0;
    color: #2D342E;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px; line-height: 1.75;
    overflow-x: hidden;
}

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

table {
    max-width: 100%;
}

a { color: #38573D; text-decoration: none; }
a:hover { text-decoration: underline; }

.nordic-magazine-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* 1. Эко-шапка журнала */
.nordic-mag-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E4E0D6;
    padding: 20px 0;
}
.nordic-nav-row { display: flex; justify-content: space-between; align-items: center; }
.eco-logo-badge {
    font-size: 22px; font-weight: 800; color: #2D4732; letter-spacing: -0.01em;
}
.eco-logo-badge span { color: #658864; }
.nordic-links-row { display: flex; gap: 28px; }
.nordic-links-row a { font-size: 14px; font-weight: 600; color: #6E756F; transition: color 0.2s ease; }
.nordic-links-row a:hover, .nordic-links-row a.active { color: #2D4732; }

/* Nordic Hygge Eco Burger Toggle */
.nordic-mobile-toggle {
    display: none;
    background: #EDF3EE;
    border: 1px solid #D8E2D9;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.nordic-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #2D4732;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nordic-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nordic-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nordic-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nordic-mobile-nav {
    display: none;
    flex-direction: column;
    background: #FFFFFF;
    border-top: 1px solid #E4E0D6;
    padding: 12px 24px 20px;
}

.nordic-mobile-nav.open {
    display: flex;
}

.nordic-mobile-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #2D342E;
    padding: 12px 0;
    border-bottom: 1px solid #F0ECE4;
}

.nordic-mobile-nav a:last-child {
    border-bottom: none;
}

.nordic-mobile-nav a.active {
    color: #38573D;
}

/* 2. ДВУХКОЛОНОЧНЫЙ МАКЕТ ЖУРНАЛА (Левая колонка эко-паспорта + Правый лонгрид) */
.nordic-dual-magazine-grid {
    display: grid; grid-template-columns: 320px 1fr; gap: 48px;
    padding: 40px 0 80px; align-items: start;
}

/* Левая прилипающая колонка эко-сертификации */
.eco-left-passport-col {
    position: sticky; top: 30px;
    display: flex; flex-direction: column; gap: 24px;
}
.eco-wooden-card {
    background: #EFECE4; border: 1px solid #DFD9CE;
    border-radius: 20px; padding: 26px;
}
.eco-badge-leaf {
    background: #D9E4DD; color: #2D4732;
    padding: 4px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 700; display: inline-block; margin-bottom: 14px;
}
.eco-passport-title { font-size: 18px; font-weight: 700; color: #2D4732; margin-bottom: 12px; }
.eco-passport-rows { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.eco-p-row { display: flex; flex-direction: column; border-bottom: 1px solid #E2DCD1; padding-bottom: 6px; }
.eco-p-row span:first-child { font-size: 11px; color: #7B857D; }
.eco-p-row span:last-child { font-weight: 600; color: #2D342E; }

/* Правая контентная колонка */
.eco-right-prose-col {
    background: #FFFFFF; border: 1px solid #EBE7DE; border-radius: 24px; padding: 48px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.eco-breadcrumb { font-size: 13px; color: #7B857D; margin-bottom: 14px; }
.eco-main-h1 {
    font-size: 36px; line-height: 1.25; color: #253929; margin: 0 0 20px; font-weight: 800;
}
.nordic-quote-banner {
    background: #F3F6F3; border-left: 4px solid #658864;
    padding: 20px 24px; border-radius: 12px; margin: 28px 0; font-size: 17px; font-style: italic; color: #2E4533;
}
.eco-right-prose-col h2 {
    font-size: 24px; color: #253929; margin: 36px 0 16px; border-bottom: 1px solid #EBE7DE; padding-bottom: 8px;
}
.eco-right-prose-col p { margin-bottom: 20px; color: #3C453E; }

/* Плюсы и минусы */
.eco-pros-cons-wrap {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0;
}
.epc-block { border-radius: 16px; padding: 22px; }
.epc-block.pros { background: #EDF3EE; }
.epc-block.cons { background: #F8EFEF; }
.epc-block h4 { font-size: 15px; margin: 0 0 12px; }
.epc-block.pros h4 { color: #2D4732; }
.epc-block.cons h4 { color: #A44A4A; }
.epc-block ul { margin: 0; padding-left: 18px; font-size: 13px; color: #4F5A51; }

/* Карточка переработки */
.recycling-guide-card {
    background: #EAF0EC; border-radius: 16px; padding: 24px; margin-top: 36px;
}
.recycling-guide-card h4 { font-size: 16px; color: #2D4732; margin: 0 0 10px; }
.recycling-guide-card p { font-size: 13px; color: #536356; margin: 0; }

/* Каталог: Сетка из 2 статей */
.nordic-split-catalog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.nordic-split-card {
    background: #FFFFFF;
    border: 1px solid #EBE7DE;
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease;
}

.nordic-mag-footer {
    border-top: 1px solid #E4E0D6; padding: 36px 0; text-align: center; font-size: 13px; color: #7B857D;
}

.eco-header-block {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0 24px;
}
.eco-header-logo {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    background: #FFFFFF;
    border: 1px solid #D6DFD8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(45, 71, 50, 0.05);
}

/* Media Queries */
@media (max-width: 860px) {
    .eco-header-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .nordic-dual-magazine-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0 50px;
    }

    .eco-left-passport-col {
        position: static;
    }

    .eco-main-h1 {
        font-size: 28px;
    }

    .eco-right-prose-col {
        padding: 24px 18px;
    }

    .nordic-split-catalog {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nordic-split-card {
        padding: 24px 20px;
    }
}

@media (max-width: 768px) {
    .nordic-magazine-wrap {
        padding: 0 16px;
    }

    .nordic-links-row {
        display: none;
    }

    .nordic-mobile-toggle {
        display: flex;
    }

    .eco-pros-cons-wrap {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
