/* Каталог собирается из предоставленных ресурсов без дополнительных контуров. */
.catalog-design { background: #ded7c9 url('design/OknoKataloga_fon.png') center top / cover fixed no-repeat; }
.catalog-design main { width: 100%; padding: 0 0 45px; }
.catalog-toolbar { position: relative; min-height: 86px; padding: 20px; background: #553d2c; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.catalog-filter-panel > summary { list-style: none; cursor: pointer; }
.catalog-filter-panel > summary::-webkit-details-marker { display: none; }
.catalog-filter-panel > summary img { display: block; width: 45px; height: 42px; object-fit: contain; }
.catalog-filter-panel .catalog-filters { display: flex; flex-direction: column; gap: 20px; position: absolute; top: 100%; right: 20px; z-index: 5; width: min(320px, calc(100vw - 40px)); max-height: 75svh; overflow: auto; margin: 0; padding: 24px; border: 1px solid var(--brass); border-radius: 18px; color: var(--ink); }
.catalog-filters .form-field label { display: flex; align-items: center; gap: 10px; }
.filter-combobox { min-width: 0; }
.filter-options { max-height: 180px; overflow: auto; margin-top: 4px; padding: 4px; border: 1px solid var(--brass); border-radius: 8px; background: #eee5d5; }
.filter-options[hidden] { display: none; }
.filter-options button { display: block; width: 100%; margin: 0; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); text-align: left; font-size: 13px; overflow-wrap: anywhere; cursor: pointer; }
.filter-options button:hover, .filter-options button.is-active { background: #d5c3a6; }
.filter-options p { margin: 6px; font-size: 13px; }
.parameter-icon { width: 25px; height: 25px; object-fit: contain; filter: brightness(0); opacity: .8; }
.catalog-search { display: flex; flex: 1; gap: 10px; max-width: 550px; margin: 0; }
.catalog-search input { min-width: 0; }
.catalog-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.catalog-sort select { width: 180px; }
.catalog-tags > summary { display: flex; justify-content: space-between; cursor: pointer; padding: 10px 0; border-block: 1px solid var(--line); }
.catalog-tags[open] > summary { margin-bottom: 18px; }
.catalog-tags .tags-arrow-open { display: none; }
.catalog-tags[open] .tags-arrow-open { display: inline; }
.catalog-tags[open] .tags-arrow-closed { display: none; }
.catalog-personalize { flex-shrink: 0; }
.catalog-tags .form-field { margin-bottom: 18px; }
.catalog-filters .filter-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 900px) { .catalog-toolbar { flex-wrap: wrap; } .catalog-search { flex-basis: 65%; } .catalog-sort { order: 4; } }
.catalog-design .result-count { width: min(1164px, 92%); margin: 14px auto; }
.catalog-design .book-grid { width: min(1164px, 92%); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 30px; }
.catalog-tile { position: relative; min-width: 0; aspect-ratio: 1.64; padding: 7px; border-radius: 4px; background: #b5936b; display: grid; grid-template-rows: minmax(0, 1fr) 46px; gap: 6px; }
.catalog-book-open { display: grid; grid-template-rows: minmax(0, 1fr) 32%; min-height: 0; height: 100%; padding: 12px 15px 8px; border-radius: 4px; background: #cec3b3 url('design/book-tile.svg') center / 100% 100% no-repeat; color: #171512; text-decoration: none; overflow: hidden; }
.catalog-book-open h2 { display: flex; align-items: center; justify-content: center; min-height: 0; text-align: center; font-size: 28px; line-height: 1.15; margin: 0; overflow: hidden; overflow-wrap: anywhere; }
.catalog-book-open > span { display: flex; align-items: center; justify-content: center; min-height: 0; margin: 0; color: #171512; font-size: 15px; line-height: 1.2; text-align: center; overflow: auto; overflow-wrap: anywhere; }
.catalog-tile > .book-like-form { display: block; width: 100%; min-width: 0; }
.catalog-tile .book-like { display: block; width: 100%; height: 46px; border: 0; border-radius: 4px; background: #771b12 url('design/book-unliked.svg') center / auto 46px no-repeat; color: transparent; font-size: 0; }
.catalog-tile .book-like[aria-pressed="true"] { background: #771b12 url('design/book-liked.svg') center / auto 46px no-repeat; }
.catalog-design .pagination { justify-content: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.book-standalone { width: min(740px, 96%); margin: 35px auto; }
.book-standalone > a { display: inline-block; margin-bottom: 20px; }
@media (max-width: 620px) {
    .catalog-design .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .catalog-book-open { padding: 20px 15px 14px; }
    .catalog-book-open h2 { font-size: 19px; }
    .catalog-book-open > span { font-size: 11px; }
}
