:root {
    --color-background: #f8f6f0;
    --color-surface: #fffdf9;
    --color-text: #252820;
    --color-green: #344b29;
    --color-green-light: #6e825e;
    --color-border: #ded8cc;
    --color-muted: #777367;

    --container-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.encyclopedia-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-container {
    width: min(100% - 40px, var(--container-width));
    margin-inline: auto;
}

/* ==================================================
   ШАПКА ЕНЦИКЛОПЕДІЇ
================================================== */

.site-header {
    position: relative;
    z-index: 100;
    background: rgba(255, 253, 249, 0.97);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Логотип */

.encyclopedia-logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--color-text);
    text-decoration: none;
}

.encyclopedia-logo__symbol {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    border: 1px solid #b8ad99;
    border-radius: 50%;

    color: var(--color-green);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -1px;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255,255,255,0.95),
            rgba(244,240,230,0.8)
        );

    box-shadow:
        inset 0 0 0 5px rgba(255,255,255,0.5);
}

.encyclopedia-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.encyclopedia-logo__text strong {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.encyclopedia-logo__text small {
    margin-top: 9px;

    color: var(--color-green);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
}

/* ==================================================
   ОСНОВНА НАВІГАЦІЯ
================================================== */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 44px;
}

.main-navigation a {
    position: relative;

    padding: 12px 0;

    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;

    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--color-green);
}

.main-navigation a:not(.navigation-search)::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;

    height: 1px;

    background: var(--color-green);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

.navigation-search {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    padding: 0 !important;

    border: 1px solid transparent;
    border-radius: 50%;

    font-size: 17px !important;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.navigation-search:hover {
    border-color: var(--color-border);
    background: rgba(52, 75, 41, 0.05);
}

/* ==================================================
   МОБІЛЬНА ШАПКА
================================================== */

@media (max-width: 760px) {

    .site-header__inner {
        min-height: auto;
        padding: 16px 0 12px;

        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .encyclopedia-logo {
        align-self: flex-start;
        gap: 12px;
    }

    .encyclopedia-logo__symbol {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .encyclopedia-logo__text strong {
        font-size: 23px;
    }

    .encyclopedia-logo__text small {
        margin-top: 6px;
        font-size: 8px;
        letter-spacing: 3px;
    }

    .main-navigation {
        width: 100%;

        justify-content: space-between;
        gap: 12px;

        padding-top: 9px;

        border-top: 1px solid var(--color-border);
    }

    .main-navigation a {
        padding: 8px 0;

        font-size: 11px;
        letter-spacing: 1px;
    }

    .navigation-search {
        width: 34px;
        height: 34px;
    }
}

/* Основна частина */

.encyclopedia-main {
    flex: 1;
}
/* ==================================================
   HERO — ГОЛОВНИЙ БЛОК
================================================== */

.hero-section {
    padding: 42px 0 24px;
}

.hero {
    min-height: 610px;

    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(40px, 6vw, 90px);

    padding: clamp(48px, 6vw, 82px);

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(248, 241, 226, 0.85),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #fffefa 0%,
            #fbf8f1 100%
        );

    border: 1px solid var(--color-border);
    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(64, 51, 33, 0.06);
}

.hero__content {
    max-width: 570px;
}

.hero__eyebrow {
    margin: 0 0 20px;

    color: var(--color-green);

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero__title {
    margin: 0 0 26px;

    color: #1f261c;

    font-size: clamp(48px, 5.2vw, 78px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -1.8px;
}

.hero__description {
    max-width: 520px;
    margin: 0 0 30px;

    color: #3d4039;

    font-size: 18px;
    line-height: 1.65;
}

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    min-width: 230px;
    padding: 15px 22px;

    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            #526c41 0%,
            #344b29 100%
        );

    border: 1px solid #2a3d21;
    border-radius: 5px;

    box-shadow:
        0 8px 18px rgba(52, 75, 41, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);

    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.hero__button span {
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

.hero__button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            180deg,
            #607c4d 0%,
            #3b552f 100%
        );

    box-shadow:
        0 11px 22px rgba(52, 75, 41, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero__motto {
    margin: 36px 0 0;

    color: #7c705e;

    font-size: 11px;
    letter-spacing: 3.2px;
}

.hero__visual {
    min-width: 0;
}
.hero__image {
    width: 100%;
    max-width: 760px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
.hero__illustration-placeholder {
    min-height: 440px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 30px;

    color: #8b806f;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(238, 232, 219, 0.48) 0,
            rgba(238, 232, 219, 0.48) 1px,
            transparent 1px,
            transparent 14px
        ),
        rgba(255, 255, 255, 0.36);

    border: 1px dashed #cfc4b2;
    border-radius: 50% 42% 48% 44%;
    text-align: center;
}

.hero__illustration-placeholder span {
    color: var(--color-green);
    font-size: 25px;
}

.hero__illustration-placeholder small {
    max-width: 280px;
    font-size: 14px;
    line-height: 1.5;
}

/* ==================================================
   HERO — ПЛАНШЕТ
================================================== */

@media (max-width: 960px) {

    .hero {
        grid-template-columns: 1fr 0.85fr;
        gap: 34px;
        padding: 46px;
    }

    .hero__title {
        font-size: clamp(43px, 6vw, 62px);
    }

    .hero__illustration-placeholder {
        min-height: 360px;
    }
}

/* ==================================================
   HERO — ТЕЛЕФОН
================================================== */

@media (max-width: 760px) {

    .hero-section {
        padding: 18px 0 10px;
    }

    .hero {
        min-height: auto;

        grid-template-columns: 1fr;
        gap: 30px;

        padding: 34px 24px 28px;

        border-radius: 12px;
    }

    .hero__content {
        max-width: none;
    }

    .hero__eyebrow {
        margin-bottom: 15px;
        font-size: 12px;
        line-height: 1.5;
    }

    .hero__title {
        margin-bottom: 20px;

        font-size: clamp(38px, 12vw, 52px);
        line-height: 1.02;
        letter-spacing: -1px;
    }

    .hero__description {
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.6;
    }

    .hero__button {
        width: 100%;
        min-width: 0;
        padding: 15px 18px;
    }

    .hero__motto {
        margin-top: 25px;
        text-align: center;
        font-size: 9px;
        letter-spacing: 2.1px;
    }

    .hero__visual {
        order: 2;
    }

    .hero__illustration-placeholder {
        min-height: 300px;
        padding: 22px;
    }

    .hero__illustration-placeholder span {
        font-size: 21px;
    }
}
/* Підвал */

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.site-footer__inner {
    min-height: 86px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    font-size: 12px;
}

.site-footer__motto {
    text-align: center;
    letter-spacing: 3px;
}

.site-footer__navigation {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.site-footer__navigation a {
    color: var(--color-text);
    text-decoration: none;
}

.site-footer__navigation a:hover {
    color: var(--color-green);
}

/* Мобільна версія */

@media (max-width: 760px) {

    .site-container {
        width: min(100% - 26px, var(--container-width));
    }

    .site-header__inner {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .encyclopedia-logo__symbol {
        width: 46px;
        height: 46px;
    }

    .encyclopedia-logo__text strong {
        font-size: 23px;
    }

    .main-navigation {
        width: 100%;
        justify-content: space-between;
        gap: 16px;
        border-top: 1px solid var(--color-border);
        padding-top: 10px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        padding: 28px 0;
        text-align: center;
    }

    .site-footer__navigation {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* =========================================
   КАРТКИ НАВІГАТОРА ЕНЦИКЛОПЕДІЇ
========================================= */

.navigator-card {
   width: 100%;
    max-width: 900px;
    display: block;
    margin: 0 auto 18px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.navigator-card__image {
    width: 100%;
    height: 172px;
    display: block;
    object-fit: contain;
    background: #fffdf9;
}

.navigator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(52, 75, 41, 0.14);
}

.navigator-card:focus-visible {
    outline: 2px solid #344b29;
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .navigator-card {
        width: 100%;
        margin-top: 14px;
    }
}

/* ==========================================
   BREADCRUMBS
========================================== */

.breadcrumbs{
    padding:24px 0 18px;
}

.breadcrumbs-nav{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;

    font-size:14px;
    line-height:1.5;
}

.breadcrumbs-nav a{
    color:#6f6a60;
    text-decoration:none;
    transition:.2s;
}

.breadcrumbs-nav a:hover{
    color:#355b38;
}

.breadcrumbs-nav span{
    color:#b7b1a5;
}

.breadcrumbs-nav .current{
    color:#4b4b4b;
    font-weight:500;
}

/* =====================================================
   ARTICLE HERO
===================================================== */

.article-hero {
    padding: 10px 0 0;
}

.article-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
    align-items: center;
    gap: 18px;
}

.article-hero__content {
    min-width: 0;
}

.article-hero__category {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;

    color: var(--color-green);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.article-hero__category-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.article-hero__title {
    margin: 0;

    color: var(--color-text);
    font-size: 34px !important;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1px;
}

.article-hero__visual {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15px;
}

.article-hero__image {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    transform: scale(1.18);
    transform-origin: center;
}

/* =========================================================
   ARTICLE DIVIDER
========================================================= */

.article-divider{
    padding: 18px 0 28px;
}

.article-divider__inner{
    display:flex;
    justify-content:center;
    align-items:center;
}

.article-divider__line{
    width:180px;
    height:1px;
    background:#d7cdbb;
}

.article-divider__icon{
    width:28px;
    margin:0 18px;
    opacity:.9;
}

/* =========================================================
   ARTICLE META
========================================================= */

.article-meta {
    padding: 8px 0 28px;
}

.article-meta__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
}

.article-meta__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-meta__item img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.article-meta__item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.article-meta__item span {
    color: #7b7165;
    font-size: 12px;
    line-height: 1.2;
}

.article-meta__item strong {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* ==========================================
   ARTICLE INTRO
========================================== */

.article-intro{
    padding:32px 0 40px;
}

.article-intro__box{
    max-width:900px;
    margin:0 auto;
    background:#fff;
    padding:28px 40px;
    border-radius:10px;
    box-shadow:0 12px 32px rgba(30,25,15,.045);
}

.article-intro p{

    margin:0;

    font-size:18px;
line-height:1.65;

    color:var(--color-text);

    text-align:center;

    font-family:var(--font-serif);

}

/* ==========================================
   ARTICLE TOC
========================================== */

.article-toc{
    padding:20px 0 60px;
}

.article-toc__box{

    max-width:760px;
    margin:0 auto;

}

.article-toc h2{

    margin:0 0 24px;

    text-align:center;

    font-size:32px;

    font-family:var(--font-serif);

}

.article-toc ol{

    margin:0;

    padding-left:22px;

}

.article-toc li{

    margin-bottom:14px;

    font-size:19px;

    line-height:1.7;

}

.article-toc a{

    color:var(--color-text);

    text-decoration:none;

    transition:.25s;

}

.article-toc a:hover{

    color:var(--color-green);

}

/* ==========================================
   ARTICLE LAYOUT
========================================== */

.article-layout {
    padding: 40px 0 70px;
}

.article-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.article-content {
    min-width: 0;
}

.article-sidebar {
    width: 320px;
    min-width: 0;
}

/* ==========================================
   TABLE OF CONTENTS — SIDEBAR
========================================== */

.table-of-contents {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e3dccf;
    border-radius: 10px;
}

.table-of-contents__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3dccf;
}

.table-of-contents__heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
}

.table-of-contents__heading img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.table-of-contents__list {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.table-of-contents__list li {
    counter-increment: toc;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.table-of-contents__list li::before {
    content: counter(toc);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eee8dc;
    font-size: 12px;
}

.table-of-contents__list a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.45;
}

/* ==========================================
   PRINCIPLES CARD
========================================== */

.principles-card {
    margin-top: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e8e1d4;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.principles-card__heading{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:18px;
}

.principles-card__heading img{
    width:34px;
    height:34px;
    flex:0 0 34px;
}

.principles-card__heading h2{
    margin:0;
    font-size:18px;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.principles-card p{
    margin:0 0 22px;
    font-size:15px;
    line-height:1.75;
    color:#444;
}

.principles-card__image{
    display:block;
    width:100%;
    max-height:340px;
    object-fit:contain;
    border-radius:10px;
}

/* ==========================================
   ALL ARTICLES CARD
========================================== */

.all-articles-card {
    margin-top: 28px;
    padding: 28px;
    background: #f7f3ea;
    border: 1px solid #e8e1d4;
    border-radius: 14px;
}

.all-articles-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    border: 1px solid #d8cfbf;
    border-radius: 50%;
    background: #ffffff;
}

.all-articles-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.all-articles-card p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.all-articles-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 20px;
    color: #ffffff;
    background: var(--color-green);
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.all-articles-card__button:hover {
    transform: translateY(-1px);
}

/* ==========================================
   ARTICLE NAVIGATION
========================================== */

.article-navigation{
    padding:40px 0 60px;
}

.article-navigation__grid{
    display:grid;
    grid-template-columns: 1fr 280px 1fr;
    gap:24px;

    border:1px solid #e6ded0;
    border-radius:16px;

    background:#fff;
}

.article-navigation__item{
    display:flex;
    align-items:center;
    gap:18px;

    padding: 22px 34px;
    
    color:#2b241c;
    text-decoration:none;

    transition:.25s;
}

.article-navigation__item:hover{
    background:#faf7f2;
}

.article-navigation__item--contents{
    justify-content:center;

    border-left:1px solid #ece4d8;
    border-right:1px solid #ece4d8;
}

.article-navigation__text{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.article-navigation__text small{
    font-size:13px;
    color: #9d8f79;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.article-navigation__text strong{
    font-size: 18px;
    font-weight:500;
}

.article-navigation__arrow{
    font-size: 30px;
    color:#7d6f5b;
}

.article-navigation__item--next{
    justify-content:flex-end;
}

.article-navigation__grid-icon{
    display:grid;
    grid-template-columns:repeat(2,10px);
    gap:6px;
}

.article-navigation__grid-icon i{
    width:10px;
    height:10px;
    border:2px solid #7d6f5b;
    border-radius:2px;
    display:block;
}

/* ==========================================
   TABLET AND MOBILE
========================================== */

@media (max-width: 900px) {

    .article-layout__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .article-sidebar {
        width: 100%;
    }

}

/* ==========================================
   MOBILE — SMARTPHONES
========================================== */

@media (max-width: 700px) {

    /* Загальний контейнер */

    .site-container {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }


    /* HEADER */

    .site-header__inner {
        flex-wrap: wrap;
        gap: 18px;
    }


    /* BREADCRUMBS */

    .breadcrumbs-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 10px;
        line-height: 1.6;
    }


    /* HERO */

    .article-hero {
        padding: 34px 0 24px;
    }

    .article-hero__grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .article-hero__content {
        width: 100%;
    }

    .article-hero__title {
        font-size: 42px !important;
        line-height: 1.02;
        letter-spacing: -1px;
    }

    .article-hero__visual {
        width: 100%;
        min-width: 0;
    }

    .article-hero__image {
        display: block;
        width: 100%;
        max-width: 360px;
        height: auto;
        margin: 0 auto;
    }


    /* DIVIDER */

    .article-divider {
        padding: 20px 0;
    }

    .article-divider__inner {
        width: 100%;
    }


    /* META */

    .article-meta {
        padding: 24px 0 36px;
    }

    .article-meta__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 18px;
    }

    .article-meta__item {
        min-width: 0;
        align-items: flex-start;
    }

    .article-meta__item img {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    .article-meta__item span {
        font-size: 13px;
    }

    .article-meta__item strong {
        font-size: 15px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }


    /* MAIN LAYOUT */

    .article-layout {
        padding: 28px 0 48px;
    }

    .article-layout__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .article-content,
    .article-sidebar {
        width: 100%;
        min-width: 0;
    }

.article-layout__grid {
    display: flex;
    flex-direction: column;
}

.article-sidebar {
    display: contents;
}

.table-of-contents {
    order: 1;
}

.article-content {
    display: contents;
}

.article-intro {
    order: 0;
}

.article-section {
    order: 2;
}

.principles-card {
    order: 3;
}

.all-articles-card {
    order: 4;
}
    /* INTRO */

    .article-intro {
        padding: 0 0 34px;
    }

    .article-intro__box {
        max-width: none;
        padding: 30px 22px;
        border-radius: 12px;
    }

    .article-intro p {
        font-size: 20px;
        line-height: 1.55;
    }


    /* ARTICLE TEXT */

    .article-section h2 {
        font-size: 30px;
        line-height: 1.25;
    }

    .article-section p {
        font-size: 18px;
        line-height: 1.7;
    }


    /* TABLE OF CONTENTS */

    .table-of-contents {
        width: 100%;
        padding: 24px 20px;
    }

    .table-of-contents__heading h2 {
        font-size: 26px;
    }

    .table-of-contents__list a {
        font-size: 16px;
        line-height: 1.45;
    }


    /* PRINCIPLES */

    .principles-card {
        padding: 24px 20px;
    }

    .principles-card__heading {
        gap: 12px;
    }

    .principles-card__heading h2 {
        font-size: 20px;
    }

    .principles-card p {
        font-size: 17px;
        line-height: 1.65;
    }

    .principles-card__image{
    width:85%;
    max-width:240px;
    margin:20px auto 0;
}


    /* ALL ARTICLES */

    .all-articles-card {
        padding: 28px 24px;
    }

    .all-articles-card p {
        font-size: 17px;
        line-height: 1.65;
    }


    /* BOTTOM NAVIGATION */

    .article-navigation {
        padding: 30px 0 50px;
    }

    .article-navigation__grid {
        grid-template-columns: 1fr;
        gap: 0;
        overflow: hidden;
    }

    .article-navigation__item {
        width: 100%;
        min-height: 96px;
        padding: 22px 24px;
    }

    .article-navigation__item--contents {
        justify-content: flex-start;
        border-left: 0;
        border-right: 0;
        border-top: 1px solid #ece4d8;
        border-bottom: 1px solid #ece4d8;
    }

    .article-navigation__item--next {
        justify-content: space-between;
    }

    .article-navigation__text strong {
        font-size: 18px;
        line-height: 1.35;
    }

    .article-navigation__text small {
        font-size: 12px;
    }


    /* FOOTER */

    .site-footer__inner {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }

}

@media (max-width: 420px) {

    .article-hero__title {
        font-size: 36px !important;
    }

    .article-meta__grid {
        grid-template-columns: 1fr;
    }

    .article-meta__item {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .article-section h2 {
        font-size: 27px;
    }

}

@media (max-width: 420px) {

    .site-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-hero__title {
        font-size: 34px !important;
        line-height: 1.04;
    }

    .article-hero__grid {
        gap: 18px;
    }

    .article-hero__image {
        max-width: 320px;
    }

    .article-intro__box {
        padding: 26px 18px;
    }

    .article-intro p {
        font-size: 18px;
    }

    .table-of-contents,
    .principles-card,
    .all-articles-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .article-navigation__item {
        padding: 20px 18px;
    }

    .article-navigation__text strong {
        font-size: 17px;
        overflow-wrap: anywhere;
    }

}

@media (max-width: 420px) {

    /* MOBILE HEADER */

    .site-header__inner {
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 14px;
    }

    .encyclopedia-logo__symbol {
        width: 52px;
        height: 52px;
    }

    .encyclopedia-logo__text strong {
        font-size: 28px;
    }

    .encyclopedia-logo__text small {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .site-header__nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        padding-top: 14px;
    }

    .site-header__nav a {
        font-size: 14px;
    }


    /* MOBILE BREADCRUMBS */

    .breadcrumbs {
        padding: 22px 0;
    }

    .breadcrumbs-nav {
        gap: 6px 8px;
        font-size: 14px;
        line-height: 1.5;
    }


    /* HERO CATEGORY */

    .article-hero__category {
        margin-bottom: 22px;
    }

    .article-hero__category span {
        font-size: 13px;
        letter-spacing: 1px;
    }

}

/* ==========================================
   TABLET — 701–1024 PX
========================================== */

@media (min-width: 701px) and (max-width: 1024px) {

    /* Загальна ширина */

    .site-container {
        width: 100%;
        max-width: 100%;
        padding-left: 32px;
        padding-right: 32px;
        box-sizing: border-box;
    }

    .encyclopedia-main {
        overflow-x: hidden;
    }


    /* HEADER */

    .site-header__inner {
        gap: 28px;
    }


    /* HERO — одна колонка */

    .article-hero {
        padding: 42px 0 32px;
    }

    .article-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .article-hero__content {
        width: 100%;
        max-width: 720px;
    }

    .article-hero__title {
        max-width: 720px;
        font-size: 46px !important;
        line-height: 1.04;
        letter-spacing: -1px;
    }

    .article-hero__visual {
        width: 100%;
        min-width: 0;
    }

    .article-hero__image {
        display: block;
        width: 100%;
        max-width: 430px;
        height: auto;
        margin: 0 auto;
    }


    /* META — дві колонки */

    .article-meta__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 40px;
    }

    .article-meta__item {
        min-width: 0;
    }


    /* ОСНОВНА ЧАСТИНА — одна колонка */

    .article-layout__grid {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.article-content,
.article-sidebar {
    display: contents;
}

.article-intro {
    order: 0;
}

.table-of-contents {
    order: 1;
}

.article-section {
    order: 2;
}

.principles-card {
    order: 3;
}

.all-articles-card {
    order: 4;
}


    /* Вступна картка */

    .article-intro__box {
        width: 100%;
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        padding: 38px 44px;
    }


    /* SIDEBAR */

   

    .table-of-contents {
        
        width: 100%;
    }

    .principles-card,
    .all-articles-card {
        width: 100%;
        margin-top: 0;
    }


    /* НИЖНЯ НАВІГАЦІЯ */

    .article-navigation__grid {
        grid-template-columns: 1fr 220px 1fr;
    }

    .article-navigation__item {
        min-width: 0;
        padding: 20px 22px;
    }

    .article-navigation__text {
        min-width: 0;
    }

    .article-navigation__text strong {
        font-size: 16px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

}

/* ==========================================
   КНОПКА ПЕРЕХОДУ ДО ЗМІСТУ ЕНЦИКЛОПЕДІЇ
========================================== */

.hero-action{
    margin:-10px auto 70px;
}



.hero-action--bottom{
    display:flex;
    justify-content:center;
    margin:40px auto 50px;
}

.hero-action--bottom .hero-action__button{
    margin-left:0;
}

.hero-action__button{
    display:inline-flex;
    margin-left:120px;
    align-items:center;
    gap:14px;

    padding:15px 24px;

    background:#415f31;
    color:#fff;

    text-decoration:none;

    font-size:18px;
    font-weight:600;

    border-radius:12px;

    transition:.25s;
}

.hero-action__button:hover{

    background:#4f743c;

    transform:translateY(-2px);

    box-shadow:0 10px 24px rgba(0,0,0,.15);

}

/* ===== Картка цитати ===== */

.quote-card{

    display:flex;
    justify-content:space-between;
    align-items:center;

    margin:35px 0;

    padding:28px;

    background:#f6f4ef;

    border-radius:12px;

}

.quote-card__text{

    flex:1;

}

.quote-card__icon{

    font-size:46px;

    color:#88a06d;

    line-height:1;

    margin-bottom:12px;

}

.quote-card__text p{

    margin:0;

    font-size:20px;

    line-height:1.7;

}

.quote-card__image img{

    width:120px;

    height:auto;

    opacity:.85;

}

.quote-card{
    overflow:hidden;
}

.quote-card__image{
    width:180px;
    height:120px;
    object-fit:cover;
    object-position:center;
    mix-blend-mode:multiply;
    opacity:.75;
    flex-shrink:0;
}

.quote-card__image{
    width:180px;
    height:120px;
    object-fit:cover;
    transform:scale(1.8);
    transform-origin:center;
    mix-blend-mode:multiply;
    opacity:.75;
    flex-shrink:0;
}

/* ===== Цитата на головній сторінці ===== */

.quote-card{
    position:relative;
    display:grid;
    grid-template-columns:42px 1fr 150px;
    align-items:center;
    gap:16px;

    width:100%;
    max-width:860px;
    min-height:130px;

    margin:28px 0 18px;
    padding:22px 26px;

    background:#f3f1eb;
    border-radius:8px;
    overflow:hidden;
}

.quote-card__icon{
    align-self:start;
    margin:0;
    padding-top:2px;

    font-size:42px;
    line-height:1;
    color:#88a56e;
}

.quote-card__text{
    font-size:18px;
    line-height:1.55;
    color:#2c3029;
}

.quote-card__image{
    display:block;
    width:150px;
    height:95px;

    object-fit:contain;
    object-position:center;

    transform:none;
    mix-blend-mode:multiply;
    opacity:.55;
}

/* Телефони */
@media (max-width:767px){

    .quote-card{
        grid-template-columns:32px 1fr;
        gap:10px;

        min-height:0;
        padding:20px;
    }

    .quote-card__text{
        font-size:16px;
    }

    .quote-card__image{
        position:absolute;
        right:10px;
        bottom:5px;

        width:90px;
        height:60px;
        opacity:.25;
    }
}

/* ===== Ключові принципи ===== */

.principles-title{
    margin:0 0 22px;
    font-size:22px;
}

.principles-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    margin-top:0;
    margin-bottom:60px;
}

.principle-card{
    text-align:center;
}

.principle-icon{
    font-size:34px;
    margin-bottom:14px;
}

.principle-card h4{
    margin:0 0 10px;
    font-size:18px;
}

.principle-card p{
    margin:0;
    font-size:15px;
    line-height:1.5;
    color:#666;
}

/* ===== Ключові принципи ===== */

.principles-title{
    margin:0px 0 18px;
    font-size:28px;
    font-weight:600;
    color:#222;
}



/* ФІНАЛЬНЕ ПОЛОЖЕННЯ БЛОКУ «КЛЮЧОВІ ПРИНЦИПИ» */

.principles-image{
    margin-top:-55px;
    margin-bottom:0;
}

.principles-image img{
    display:block;
    width:100%;
    max-width:1000px;
    height:auto;
}

/* ===== Нові статті ===== */

.articles-title{
    margin:50px 0 28px;
}

.articles-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin-bottom:50px;
}

.article-card{
    background:#fff;
    border:1px solid #e7e2d8;
    border-radius:8px;
    overflow:hidden;
    transition:.25s;
}

.article-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.article-card__image{
    aspect-ratio:16/8;
    background:#f3f1eb;
}

.article-card__image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.article-card__content{
    padding:20px;
}

.article-card h3{
    margin:0 0 12px;
    font-size:22px;
    line-height:1.3;
}

.article-card p{
    margin:0 0 18px;
    font-size:16px;
    line-height:1.6;
    color:#666;
}

.article-card a{
    color:#5d7744;
    text-decoration:none;
    font-weight:600;
}

.article-card a:hover{
    text-decoration:underline;
}

/* планшет */

@media (max-width:991px){

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

}

/* телефон */

@media (max-width:767px){

    .articles-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

}

/* ===== Картка оновлення ===== */

.home-update-card{
    margin-top:22px;
    padding:22px 20px;

    background:#f8f5ef;
    border:1px solid #e5ddd0;
    border-radius:14px;

    text-align:center;
}

.home-update-card__icon{
    font-size:34px;
    color:#6b8f5d;
    margin-bottom:14px;
}

.home-update-card p{
    margin:0 0 16px;

    font-size:16px;
    line-height:1.7;
    color:#3a342d;
}

.home-update-card a{
    display:inline-block;

    color:#4b7343;
    font-weight:600;

    text-decoration:none;
    border-bottom:1px solid rgba(75,115,67,.35);

    transition:.25s;
}

.home-update-card a:hover{
    color:#2f5b2f;
    border-color:#2f5b2f;
}

/* ===== Нижня навігація енциклопедії ===== */

.bottom-navigation{
    display:grid;
    grid-template-columns:1fr 0.72fr 1fr;

    margin:10px 0 20px;

    background:#faf8f3;
    border:1px solid #e4ded3;
    border-radius:12px;
    overflow:hidden;
}

.bottom-navigation__item{
    min-height:118px;
    padding:24px 28px;

    display:flex;
    align-items:center;
    gap:18px;

    color:#2b3028;
    text-decoration:none;
}

.bottom-navigation__item + .bottom-navigation__item{
    border-left:1px solid #e4ded3;
}

.bottom-navigation__item--contents{
    justify-content:center;
}

.bottom-navigation__item--next{
    justify-content:flex-end;
    text-align:right;
}

.bottom-navigation__item small{
    display:block;
    margin-bottom:6px;

    font-size:14px;
    color:#8a7a65;
}

.bottom-navigation__item strong{
    font-size:18px;
    line-height:1.35;
    font-weight:500;
}

.bottom-navigation__arrow{
    font-size:28px;
    color:#355c38;
}

.bottom-navigation__icon{
    font-size:30px;
    color:#557b57;
}

.bottom-navigation__item:hover{
    background:#f3efe6;
}

/* Планшети й телефони */

@media (max-width:767px){

    .bottom-navigation{
        grid-template-columns:1fr;
    }

    .bottom-navigation__item{
        min-height:auto;
        padding:20px;
    }

    .bottom-navigation__item + .bottom-navigation__item{
        border-left:0;
        border-top:1px solid #e4ded3;
    }

    .bottom-navigation__item--contents{
        justify-content:flex-start;
    }

    .bottom-navigation__item--next{
        justify-content:space-between;
        text-align:left;
    }
}

/* ===== Головна сторінка: дві колонки ===== */

.encyclopedia-content{
    padding:40px 0 0;
}

.encyclopedia-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 280px;
    gap:42px;
    align-items:start;
}

.encyclopedia-layout__main{
    min-width:0;
}

.encyclopedia-sidebar{
    min-width:0;
}

/* ===== Правий блок «ЗМІСТ» ===== */

.home-toc{
    padding:22px 20px;

    background:#f7f3ea;
    border:1px solid #e6ded0;
    border-radius:10px;
}

.home-toc__title{
    margin:0 0 18px;
    padding-bottom:14px;

    border-bottom:1px solid #e3dccf;

    font-size:20px;
    font-weight:500;
}

.home-toc__list{
    margin:0;
    padding-left:26px;
}

.home-toc__list li{
    margin-bottom:10px;
    padding-left:4px;

    font-size:14px;
    line-height:1.4;
}

.home-toc__list a{
    color:#2b3028;
    text-decoration:none;
}

.home-toc__list a:hover{
    color:#557b57;
}

.home-toc__list .is-active{
    color:#557b57;
}

.home-toc__list .is-active a{
    color:#557b57;
}

/* ===== Планшет і телефон ===== */

@media (max-width:900px){

    .encyclopedia-layout{
        grid-template-columns:1fr;
    }

    .encyclopedia-sidebar{
        order:-1;
    }

}

/* ===== Ботанічна ілюстрація в правій колонці ===== */

.sidebar-botanical{
    margin-top:26px;
    text-align:center;
}

.sidebar-botanical img{
    display:block;
    width:100%;
    max-width:240px;
    height:auto;
    margin:0 auto;

    opacity:.55;
    mix-blend-mode:multiply;
}

/* ===== Фінальне положення ботанічної ілюстрації ===== */

.encyclopedia-sidebar{
    align-self:start;
}

.sidebar-botanical{
    margin:24px 0 0;
    padding:0;
    text-align:center;
}

.sidebar-botanical img{
    display:block;
    width:220px;
    max-width:100%;
    height:auto;
    margin:0 auto;

    opacity:.55;
    mix-blend-mode:multiply;

    transform:none;
}
    mix-blend-mode:multiply;

    transform:scale(1.35);
    transform-origin:center top;
}