/* «Клубень знаний» — новости, статьи, книги и события */
.journal-toolbar { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: center; }
@media (max-width: 900px) { .journal-toolbar { grid-template-columns: 1fr 1fr; } .journal-toolbar .input:first-child { grid-column: 1 / -1; } }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
@media (max-width: 980px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .journal-grid { grid-template-columns: 1fr; } }

.journal-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s);
  color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.journal-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.journal-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.journal-card:hover .journal-card__img img { transform: scale(1.05); }
.journal-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.journal-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.journal-card__title { font-family: var(--font-h); color: var(--navy); font-size: 1.12rem; line-height: 1.3; }
.journal-card:hover .journal-card__title { color: var(--orange-d); }
.journal-card__text { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.journal-card--big { grid-column: 1 / -1; flex-direction: row; }
.journal-card--big .journal-card__img { flex: 1.2; aspect-ratio: auto; min-height: 300px; }
.journal-card--big .journal-card__body { flex: 1; justify-content: center; padding: 30px 34px; }
.journal-card--big .journal-card__title { font-size: 1.6rem; }
.journal-card--big .journal-card__text { -webkit-line-clamp: 6; font-size: 1.02rem; }
@media (max-width: 760px) { .journal-card--big { flex-direction: column; } .journal-card--big .journal-card__img { min-height: 200px; } .journal-card--big .journal-card__body { padding: 20px; } }

.pager a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; font: 700 .95rem var(--font); color: var(--navy); text-decoration: none; }
.pager a:hover { border-color: var(--orange); color: var(--orange-d); }

.journal-hero .journal-back { text-decoration: none; }
.journal-hero .journal-back:hover { color: #fff; }
.journal-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); max-width: 900px; }
.page-hero .journal-meta { margin-top: 6px; font-size: 1rem; }
.page-hero .journal-meta a { color: #FFD08F; }

.journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .journal-layout { grid-template-columns: 1fr; } }
.journal-article { font-size: 1.05rem; }
.journal-article .lead { font-size: 1.18rem; font-weight: 600; color: var(--navy); }
.journal-article h3 { margin-top: 1.4em; font-size: 1.25rem; }
.journal-article ul { padding-left: 1.2em; }
.journal-article li { margin-bottom: .35em; }
.journal-fig { margin: 1.3em 0; }
.journal-fig img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 6px 18px rgba(30,33,64,.12); }
.journal-fig figcaption { margin-top: 8px; font-size: .82rem; color: #6b6b6b; line-height: 1.4; }
.journal-fig figcaption a { color: inherit; }
.journal-sources { font-size: .95rem; }
.journal-sources a { word-break: break-word; }
.journal-article .chips { margin-top: 18px; }
.journal-article .chips a { text-decoration: none; }
.journal-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 2px dashed var(--line); }
.journal-pn a { text-decoration: none; color: var(--navy); font-weight: 700; line-height: 1.35; }
.journal-pn a span { display: block; color: var(--orange-d); font-size: .85rem; margin-bottom: 4px; }
.journal-pn .next { text-align: right; }
@media (max-width: 640px) { .journal-pn { grid-template-columns: 1fr; } .journal-pn .next { text-align: left; } }

.journal-aside { display: grid; gap: 22px; position: sticky; top: 130px; }
@media (max-width: 980px) { .journal-aside { position: static; } }
.journal-aside .panel { padding: 24px; }
.journal-aside h3 { font-size: 1.1rem; }
.journal-mini { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 700; font-size: .95rem; line-height: 1.35; }
.journal-mini time { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.journal-mini:hover { color: var(--orange-d); }
.journal-seeds { background: var(--peach-l); }
.journal-seeds p { font-size: .95rem; }

/* книжная полка */
.journal-shelf-btn { position: relative; margin-top: 22px; display: inline-flex; }
.shelf-strip { margin-top: 46px; padding: 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-s); }
.shelf-strip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shelf-strip__head h2 { margin: 0; font-size: 1.5rem; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.book-grid--strip { grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 16px; }
@media (max-width: 980px) { .book-grid { grid-template-columns: repeat(3, 1fr); } .book-grid--strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .book-grid, .book-grid--strip { grid-template-columns: repeat(2, 1fr); gap: 14px; } .shelf-strip { padding: 20px 16px; } }
.book-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--navy); line-height: 1.3; font-size: .95rem; }
.book-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; object-position: center; background: #FFFDF9; border-radius: 6px 14px 14px 6px; border-left: 7px solid var(--brown);
  box-shadow: 0 10px 22px rgba(74, 52, 38, .22); transition: transform .2s; background: var(--sand); }
.book-card:hover img { transform: translateY(-5px) rotate(-1deg); }
.book-card:hover b { color: var(--orange-d); }
.book-card__year { font-size: .8rem; font-weight: 800; color: var(--orange-d); letter-spacing: .04em; }
.book-card .muted { font-size: .85rem; }
.book-detail { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 30px; align-items: start; }
@media (max-width: 860px) { .book-detail { grid-template-columns: 1fr; } .book-detail__side { max-width: 320px; } }
.book-detail__side { display: grid; gap: 12px; }
.book-cover { width: 100%; border-radius: 6px 14px 14px 6px; border-left: 8px solid var(--brown); box-shadow: 0 14px 30px rgba(74, 52, 38, .25); }
.book-detail__side .pill { justify-content: center; text-align: center; }
.book-meta { font-size: .88rem; margin: 4px 0 0; }
.book-viewer { width: 100%; height: 80vh; min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--cream); margin-top: 10px; }
@media (max-width: 640px) { .book-viewer { height: 70vh; min-height: 420px; } }
