.encyclopedia{max-width:1160px;margin:0 auto;padding:22px 16px 56px!important;color:#2c1810}
.ency-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 32px;margin:0 0 20px;border-radius:22px;background:linear-gradient(130deg,#fff8ec,#FDF6E2);border:1px solid #ebd9c3}
.ency-eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#A0722D}
.ency-hero h1{font-size:clamp(24px,3.8vw,36px);line-height:1.2;margin:8px 0;color:#2c1810}
.ency-hero p{max-width:680px;color:#635654;font-size:15px;line-height:1.6;margin:0}
.ency-hero-icon{font-size:54px;flex:0 0 auto}
.ency-nav{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 14px;margin-bottom:18px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.ency-nav a{flex:0 0 auto;text-decoration:none;padding:10px 16px;border:1px solid #E8D5B8;border-radius:999px;background:#fff;color:#5D4037;font-size:14px;font-weight:700;white-space:nowrap;transition:all .15s}
.ency-nav a.active,.ency-nav a:hover{background:#C9955B;border-color:#C9955B;color:#fff}
.ency-search{display:flex;gap:10px;align-items:center;margin:0 0 24px;padding:10px 12px;background:#fff;border:1px solid #e7dfec;border-radius:16px;box-shadow:0 4px 18px rgba(50,24,80,0.05)}
.ency-search input[type=search]{flex:1;min-width:0;border:0;background:transparent;padding:10px 12px;font-size:15px;outline:none;color:#2C1810}
.ency-search button{border:0;border-radius:10px;padding:10px 20px;background:#C9955B;color:#fff;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.ency-reset{padding:8px 12px;color:#C9955B;font-weight:700;text-decoration:none;font-size:13px;white-space:nowrap}
.ency-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin:0 0 16px}
.ency-section-heading h2{font-size:22px;margin:5px 0 0;color:#2c1810}
.ency-count{background:#FDF6E2;color:#6f419b;border-radius:999px;padding:8px 14px;font-size:12px;font-weight:800;white-space:nowrap}
.ency-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ency-category{display:flex;flex-direction:column;min-height:200px;padding:22px;background:#fff;border:1px solid #EBE0CE;border-radius:18px;text-decoration:none;color:inherit;box-shadow:0 4px 18px rgba(40,21,46,0.04);transition:transform .18s,border-color .18s,box-shadow .18s}
.ency-category:hover{transform:translateY(-3px);border-color:#d5c2e8;box-shadow:0 8px 24px rgba(40,21,46,0.09)}
.ency-category-icon{font-size:32px;margin-bottom:12px}
.ency-category-title{font-size:18px;font-weight:800;margin-bottom:8px;color:#2c1810}
.ency-category-text{font-size:13px;line-height:1.55;color:#5D4037}
.ency-category-link{margin-top:auto;padding-top:16px;color:#C9955B;font-size:13px;font-weight:800}
.ency-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ency-guide-card{display:flex;flex-direction:column;padding:22px;background:#fff;border:1px solid #ebd9c3;border-radius:18px;box-shadow:0 4px 18px rgba(40,21,46,0.04)}
.ency-card-badge{align-self:flex-start;display:inline-flex;align-items:center;padding:4px 11px;background:#fdf5ea;color:#8b4513;border:1px solid #ebd9c3;border-radius:20px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:12px}
.ency-guide-card h2{font-size:18px;margin:0 0 10px;color:#2c1810}
.ency-guide-card p{color:#5b525d;line-height:1.65;margin:0 0 12px;font-size:14px}
.ency-guide-card ul{padding-left:18px;margin:0 0 16px;color:#4A3020;font-size:13px;line-height:1.65}
.ency-guide-card li{margin:5px 0}
.ency-source{margin-top:auto;padding-top:12px;border-top:1px solid #F0E5D2;font-size:12px;color:#C9955B;font-weight:700;text-decoration:none}
.ency-source:hover{text-decoration:underline}
.ency-alphabet{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 14px;margin-bottom:10px;-webkit-overflow-scrolling:touch}
.ency-alphabet a{flex:0 0 34px;height:34px;display:grid;place-items:center;border:1px solid #E8D5B8;border-radius:999px;background:#fff;color:#5D4037;text-decoration:none;font-size:13px;font-weight:800}
.ency-alphabet a:first-child{flex-basis:48px}
.ency-alphabet a.active,.ency-alphabet a:hover{background:#C9955B;color:#fff;border-color:#C9955B}
.ency-term-list{display:grid;gap:12px}
.ency-term{padding:18px 20px;background:#fff;border:1px solid #EBE0CE;border-radius:15px}
.ency-term-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ency-term h2{font-size:17px;margin:0;color:#2c1810}
.ency-term-top span{padding:4px 10px;border-radius:999px;background:#FDF6E2;color:#704599;font-size:11px;font-weight:800}
.ency-term p{margin:10px 0 0;color:#5c545f;line-height:1.65;font-size:14px}
.ency-results{color:#786d7d;font-size:12px;margin-top:12px}
.ency-empty{text-align:center;padding:40px 18px;background:#fff;border:1px solid #EBE0CE;border-radius:16px;color:#564c5a}
.ency-empty strong{font-size:17px}
.ency-empty p{margin:6px 0 0}
.ency-disclaimer{margin-top:24px;padding:16px 20px;background:#fff9e9;border:1px solid #f1dfad;border-left:4px solid #e6ad38;border-radius:12px;color:#524422;line-height:1.55}
.ency-disclaimer strong{display:block;margin-bottom:4px;font-size:14px}
.ency-disclaimer p{margin:0;font-size:13px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:860px){.ency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ency-guide-grid{grid-template-columns:1fr}}
@media(max-width:560px){.encyclopedia{padding:14px 12px 36px!important}.ency-hero{padding:20px 18px;border-radius:18px;align-items:flex-start}.ency-hero-icon{font-size:38px}.ency-grid{grid-template-columns:1fr;gap:12px}.ency-category{min-height:0;padding:18px}.ency-search{flex-wrap:wrap;gap:8px}.ency-search input[type=search]{flex-basis:100%}.ency-search button{flex:1}}

/* 🍲 Кнопка «Смотреть рецепты» */
.ency-related-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #D4A574, #C9955B);
    color: #fff !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(201, 149, 91, 0.3);
}
.ency-related-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 149, 91, 0.4);
    color: #fff !important;
}
.ency-related-btn b {
    font-size: 16px;
    transition: transform 0.2s;
}
.ency-related-btn:hover b {
    transform: translateX(4px);
}
.ency-guide-card .ency-related-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* 🎨 Карамельный фон для энциклопедии */
body.ency-body {
    background: linear-gradient(135deg, #FAF0E2 0%, #F0DCC0 50%, #E8CFA8 100%) !important;
    background-attachment: fixed !important;
    color: #2C1810 !important;
}

/* 🎨 Карамельный фон (усиленный) */
body.ency-body,
html body.ency-body,
body:not(.admin-body).ency-body,
body:not(.admin-body) {
    background: linear-gradient(135deg, #FAF0E2 0%, #F0DCC0 50%, #E8CFA8 100%) !important;
    background-attachment: fixed !important;
    background-color: #FAF0E2 !important;
    color: #2C1810 !important;
}