/* Shared public-site layout, navigation, footer and book cards. */
.redesign { --site-accent: #473bf0; --site-ink: #18241f; --site-muted: #6c7481; color: #1d2529; background: #fff; font-family: Inter, Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
.redesign *, .redesign *::before, .redesign *::after { box-sizing: border-box; }
.redesign a { text-decoration: none; }
.redesign a:focus-visible, .redesign button:focus-visible, .redesign input:focus-visible { outline: 3px solid #7e76ff; outline-offset: 4px; }
.redesign h1, .redesign h2, .redesign h3, .redesign p { margin-top: 0; }
.redesign .site-container { width: calc(100% - 72px); max-width: 1320px; margin: 0 auto; }
.redesign .site-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 12px 27px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: #3f32c5; font-size: 13px; font-weight: 500; line-height: 1.4; cursor: pointer; transition: background .18s, box-shadow .18s; }
.redesign .site-button:hover { background: #2f239f; box-shadow: 0 4px 14px #3f32c52b; }
.redesign .site-button--small { min-height: 40px; padding: 10px 25px; font-size: 12px; }
.redesign .site-button--light { background: #f6faf6; color: #243d34; padding: 12px 26px; }
.redesign .site-button--light:hover { background: #fff; box-shadow: 0 5px 18px #0002; }
.redesign .site-eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.redesign .site-header { position: relative; z-index: 20; background: #fff; }
.redesign .site-header__inner { min-height: 84px; display: flex; align-items: center; gap: 44px; }
.redesign .site-brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 16px; color: #20252b; font-size: 12px; font-weight: 600; line-height: 1.5; }
.redesign .site-brand img { display: block; width: 56px; height: 56px; object-fit: contain; }
.redesign .site-nav { display: flex; align-items: center; align-self: stretch; gap: 30px; flex: 1; }
.redesign .site-nav a { position: relative; display: flex; align-items: center; min-height: 44px; color: #627080; font-size: 14px; white-space: nowrap; }
.redesign .site-nav a:hover, .redesign .site-nav .is-current { color: var(--site-accent); }
.redesign .site-nav .is-current::after { content: ''; position: absolute; bottom: 2px; width: 22px; height: 2px; background: var(--site-accent); left: 50%; transform: translateX(-50%); }
.redesign .site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.redesign .site-icon-link { color: var(--site-accent); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 44px; background: none; border: 0; font-size: 19px; padding: 0; cursor: pointer; }
.redesign .site-icon-link:hover { color: #292099; }
.redesign .site-header-search { display: flex; align-items: center; flex-shrink: 0; gap: 14px; margin: 0; }
.redesign .site-header-search__field { display: flex; align-items: center; gap: 11px; width: 260px; height: 42px; padding: 0 14px; border-radius: 10px; background: #f3f5f9; }
.redesign .site-header-search__field[hidden] { display: none; }
.redesign .site-header-search__field > i { flex-shrink: 0; color: #344257; font-size: 14px; }
.redesign .site-header-search__field input { width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: none; border-radius: 0; color: #293548; background: transparent; box-shadow: none; font: 12px/1.5 Inter, Arial, sans-serif; }
.redesign .site-header-search__field input::placeholder { color: #8d98aa; opacity: 1; }
.redesign .site-header-search__field:focus-within { box-shadow: 0 0 0 2px #473bf026; }
.redesign .site-menu-toggle { display: none; }
.redesign .site-mobile-menu[hidden] { display: none; }
.redesign .site-mobile-menu { padding: 12px 24px 20px; border-top: 1px solid #ebeaf5; background: white; }
.redesign .site-mobile-menu a { display: block; padding: 11px 0; color: #273644; }
.redesign .books-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 28px; }
.redesign .book-card { min-width: 0; }
.redesign .book-card__cover { position: relative; margin-bottom: 14px; }
.redesign .book-card__cover-link { display: block; height: 100%; aspect-ratio: 3 / 4; }
.redesign .book-card__cover img { width: 100%; height: 100%; object-fit: fill; object-position: left center; display: block; border-radius: 4px; filter: drop-shadow(1px 2px 2px #00000012); }
.redesign .book-card__favorite { position: absolute; top: 7px; right: 7px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #697779; background: #fffc; border: 1px solid #e6ece5; border-radius: 50%; font-size: 15px; }
.redesign .book-card__favorite:hover, .redesign .book-card__favorite.is-saved { color: var(--site-accent); background: #fff; }
.redesign .book-card h3 { font: 600 13px/1.4 Inter, Arial, sans-serif; margin: 0 0 7px; min-height: 2.8em; }
.redesign .book-card h3 a { color: #263644; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.redesign .book-card h3 a:hover { color: var(--site-accent); }
.redesign .book-card__author { font-size: 11px; color: #7e8794; line-height: 1.5; margin-bottom: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16px; }
.redesign .book-card__category { display: inline-block; padding: 5px 12px; max-width: 100%; border-radius: 999px; background: #eef0ff; color: #5b6581; font-size: 10px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; vertical-align: top; }
.redesign .book-card__rating { margin-top: 9px; font-size: 11px; color: #526174; }
.redesign .book-card__rating i { color: #ef9a21; margin-right: 4px; }
.redesign .book-card__rating span { color: #77828a; }
.redesign .pagination__mobile-status { display: none; }
@media (max-width: 767px) {
  .redesign .pagination { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 4px; }
  .redesign .pagination .page-item { margin: 0; }
  .redesign .pagination .page-item .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 42px; margin: 0; padding: 8px 10px; border: 1px solid #e8eaf3; border-radius: 10px; font-size: 13px; line-height: 1.3; }
  .redesign .pagination.pagination--compact { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; width: 100%; max-width: 360px; margin: 0 auto; }
  .redesign .pagination--compact > .page-item:not(:first-child):not(:last-child) { display: none; }
  .redesign .pagination--compact .pagination__mobile-status { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border-radius: 10px; color: #637089; background: #f5f6fb; font-size: 12px; line-height: 1.5; text-align: center; }
  .redesign .pagination--compact .page-item:first-child .page-link,
  .redesign .pagination--compact .page-item:last-child .page-link { width: 44px; height: 44px; padding: 0; color: var(--site-accent); background: #fff; font-size: 0; }
  .redesign .pagination--compact .page-item:first-child .page-link::before { content: '‹'; font: 26px/1 Arial, sans-serif; }
  .redesign .pagination--compact .page-item:last-child .page-link::before { content: '›'; font: 26px/1 Arial, sans-serif; }
  .redesign .pagination--compact .page-item.disabled .page-link { color: #b4bbca; background: #f8f9fc; }
}
.redesign .site-footer { color: #dce1e8; background: #19242f url('/images/footer-background.png') center 20% / cover no-repeat; padding: 38px 0 34px; }
.redesign .site-footer__columns { display: grid; grid-template-columns: 1.4fr .65fr 1fr 1.1fr; gap: 56px; padding: 0 24px 52px; }
.redesign .site-footer .site-brand { color: #f4f6f9; font-weight: 400; font-size: 11px; gap: 14px; }
.redesign .site-footer .site-brand img { width: 51px; height: 51px; }
.redesign .site-footer__brand > p { font-size: 13px; line-height: 1.7; margin: 20px 0; }
.redesign .site-socials { display: flex; gap: 11px; }
.redesign .site-socials a { color: #f4f8f8; background: #ffffff12; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; width: 30px; height: 30px; font-size: 14px; }
.redesign .site-footer .site-socials a { color: #f4f6f9; background: #d5deed14; }
.redesign .site-footer nav { padding-top: 14px; }
.redesign .site-footer nav h2 { font: 600 13px/1.5 Inter, Arial, sans-serif; color: #f4f6f9; margin: 0 0 18px; }
.redesign .site-footer nav a { display: block; color: #d1d7df; font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.redesign .site-footer nav a:hover { color: #fff; text-decoration: underline; }
.redesign .site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 24px 0; border-top: 1px solid #c8d1dd26; font-size: 10px; color: #aab4c0; }
.redesign .site-footer__bottom p { margin: 0; }
.redesign .site-footer__bottom p:last-child { white-space: nowrap; color: #d1d7df; }
.redesign .site-footer__bottom i { color: #ef625b; margin: 0 4px; }
/* Page headings and the existing top bar belong to the common layout. */
.redesign .topbar { background: #f8f9fd; }
.redesign .topbar .nav-link { color: #596575; font-size: 12px; }
.redesign .page-intro { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 36px; color: #fff; background: #192d3b; }
.redesign .page-intro__image { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.redesign .page-intro::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #152c3bea 0%, #182d3dc9 46%, #101f2b73 100%); }
.redesign .page-intro__inner { display: flex; align-items: center; justify-content: space-between; gap: 64px; min-height: 264px; padding-top: 42px; padding-bottom: 42px; }
.redesign .page-intro__copy { flex: 1; min-width: 0; }
.redesign .page-intro__eyebrow { margin: 0 0 16px; color: #e2e8ee; font-size: 10px; font-weight: 500; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.redesign .page-intro h1 { margin: 0; color: #fff; font: 700 44px/1.15 Georgia, 'Times New Roman', serif; overflow-wrap: anywhere; text-shadow: 0 2px 4px #0002; }
.redesign .page-intro__description { max-width: 580px; margin: 16px 0 0; color: #f0f3f7; font-size: 16px; line-height: 1.65; }
.redesign .page-intro__quote { flex: 0 0 auto; max-width: 270px; margin: 0; }
.redesign .page-intro__quote p { margin: 0 0 12px; color: #f7f5f1; font: italic 20px/1.5 Georgia, 'Times New Roman', serif; }
.redesign .page-intro__quote cite { color: #d0d7df; font: 13px/1.5 Inter, Arial, sans-serif; }
.redesign .page-breadcrumbs { margin-bottom: 28px; background: linear-gradient(110deg, #f7f9fc, #f2f5fa); }
.redesign .page-breadcrumbs__items { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; min-height: 66px; margin: 0; padding: 20px 0; list-style: none; color: #70809a; font-size: 13px; line-height: 1.6; }
.redesign .page-breadcrumbs__items li { display: inline-flex; align-items: center; min-width: 0; }
.redesign .page-breadcrumbs__items a { display: inline-flex; align-items: center; gap: 11px; color: #5e67a1; }
.redesign .page-breadcrumbs__items a:hover { color: var(--site-accent); }
.redesign .page-breadcrumbs__items a > i { font-size: 14px; }
.redesign .page-breadcrumbs__items span { overflow-wrap: anywhere; }
.redesign .page-breadcrumbs__separator { flex-shrink: 0; margin: 0 16px; color: #8a96ac; font-size: 9px; }
@media (max-width: 767px) {
  .redesign .page-intro { margin-bottom: 26px; }
  .redesign .page-intro__inner { flex-direction: column; align-items: flex-start; gap: 26px; min-height: 0; padding-top: 32px; padding-bottom: 32px; }
  .redesign .page-intro__eyebrow { margin-bottom: 12px; font-size: 9px; }
  .redesign .page-intro h1 { font-size: 32px; }
  .redesign .page-intro__description { margin-top: 13px; font-size: 14px; }
  .redesign .page-intro__quote p { margin-bottom: 8px; font-size: 18px; }
  .redesign .page-intro__quote cite { font-size: 11px; }
  .redesign .page-breadcrumbs { margin-bottom: 24px; }
  .redesign .page-breadcrumbs__items { min-height: 60px; padding: 18px 0; font-size: 12px; }
  .redesign .page-breadcrumbs__separator { margin: 0 12px; }
}
@media (max-width: 1399px) {
  .redesign .site-header.is-search-open .site-nav { display: none; }
}
@media (max-width: 1199px) {
  .redesign .site-container { width: calc(100% - 48px); }
  .redesign .site-header__inner { gap: 28px; min-height: 76px; }
  .redesign .site-brand { font-size: 10px; gap: 10px; }
  .redesign .site-brand img { width: 45px; height: 45px; }
  .redesign .site-nav { gap: 20px; }
  .redesign .site-header__actions { gap: 7px; }
  .redesign .books-grid { gap: 28px 20px; }
  .redesign .book-card h3 { font-size: 12px; }
  .redesign .site-footer__columns { gap: 30px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 991px) {
  .redesign .site-nav { gap: 14px; }
  .redesign .site-nav a { font-size: 10px; }
  .redesign .site-header__inner { gap: 20px; }
  .redesign .site-header__actions { gap: 3px; }
  .redesign .site-account-icon { display: none; }
  .redesign .site-icon-link { width: 28px; font-size: 17px; }
  .redesign .site-button--small { padding-left: 18px; padding-right: 18px; }
  .redesign .books-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px 22px; }
  .redesign .site-footer__columns { gap: 25px; grid-template-columns: 1.35fr .8fr 1fr; }
  .redesign .site-footer__columns > nav:last-child { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 5px 20px; }
  .redesign .site-footer__columns > nav:last-child h2 { flex-basis: 100%; }
}
@media (max-width: 767px) {
  .redesign .site-container { width: calc(100% - 32px); }
  .redesign .site-header__inner { position: relative; min-height: 70px; gap: 12px; }
  .redesign .site-header.is-search-open .site-header__inner { min-height: 130px; padding-bottom: 60px; }
  .redesign .site-header-search { gap: 0; }
  .redesign .site-header-search__field { position: absolute; left: 0; right: 0; bottom: 12px; width: auto; height: 44px; }
  .redesign .site-brand { font-size: 9px; gap: 8px; }
  .redesign .site-brand img { width: 37px; height: 37px; }
  .redesign .site-nav { display: none; }
  .redesign .site-menu-toggle { display: inline-flex; }
  .redesign .site-header__actions { gap: 3px; }
  .redesign .site-button--small { font-size: 11px; padding: 8px 16px; min-height: 36px; }
  .redesign .books-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 20px; }
  .redesign .book-card__cover { margin-bottom: 11px; }
  .redesign .book-card h3 { font-size: 12px; }
  .redesign .book-card__author { font-size: 10px; }
  .redesign .book-card__category { font-size: 9px; padding: 5px 10px; }
  .redesign .book-card__favorite { width: 29px; height: 29px; font-size: 16px; }
  .redesign .site-button--light { padding: 10px 19px; font-size: 11px; }
  .redesign .site-footer { padding: 30px 0 25px; }
  .redesign .site-footer__columns { grid-template-columns: 1fr 1fr; padding: 0 5px 25px; gap: 25px; }
  .redesign .site-footer__brand { grid-column: 1 / -1; }
  .redesign .site-footer .site-brand { font-size: 11px; }
  .redesign .site-footer__brand > p { margin: 14px 0; font-size: 12px; }
  .redesign .site-footer nav { padding: 0; }
  .redesign .site-footer nav h2 { font-size: 12px; margin-bottom: 14px; }
  .redesign .site-footer nav a { font-size: 11px; }
  .redesign .site-footer__columns > nav:last-child { grid-column: 1 / -1; }
  .redesign .site-footer__bottom { display: block; padding: 22px 5px 0; font-size: 9px; line-height: 1.7; }
  .redesign .site-footer__bottom p + p { margin-top: 12px; }
}
@media (max-width: 479px) {
  .redesign .site-header .site-brand span { display: none; }
}
@media (max-width: 359px) {
  .redesign .site-container { width: calc(100% - 24px); }
  .redesign .site-header__actions > a[aria-label="Избранные книги"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .redesign *, .redesign *::before, .redesign *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Photo placeholders share the site's lavender palette; no layout wrappers needed. */
.redesign img.image-is-loading,
.redesign .image-cover-is-loading {
  background-color: #f0eff8;
  background-image: linear-gradient(110deg, transparent 25%, #ffffffb3 45%, transparent 65%);
  background-size: 250% 100%;
  animation: image-placeholder-shimmer 1.8s ease-in-out infinite;
}
.redesign .image-cover-is-loading { position: relative; border-radius: 4px; }
.redesign .image-cover-is-loading > img { opacity: 0; }
.redesign .image-cover-is-loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23473bf0' stroke-opacity='.45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10C15 6 9 6 4 8v25c5-2 11-2 16 2 5-4 11-4 16-2V8c-5-2-11-2-16 2Zm0 0v25M9 14c2-.5 4 0 6 1m-6 5c2-.5 4 0 6 1m10-6c2-1 4-1.5 6-1m-6 7c2-1 4-1.5 6-1'/%3E%3C/svg%3E");
}
.redesign img.image-has-error { background: #f0eff8; color: #6c7481; font-size: 12px; }
@keyframes image-placeholder-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .redesign img.image-is-loading, .redesign .image-cover-is-loading { animation: none; }
}

/* Catalog controls, list view and empty states shared by categories and search. */
.redesign .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .redesign .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .redesign .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .redesign .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.redesign .catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-bottom: 28px; }
.redesign .catalog-toolbar__count { flex-shrink: 0; margin: 0; color: #293044; font-size: 16px; font-weight: 600; line-height: 1.5; }
.redesign .catalog-toolbar__controls { display: flex; align-items: center; gap: 30px; }
.redesign .catalog-sort { display: flex; align-items: center; gap: 10px; margin: 0; }
.redesign .catalog-sort label { margin: 0; color: #8b91a3; font-size: 12px; line-height: 1.5; }
.redesign .catalog-sort__select { position: relative; }
.redesign .catalog-sort select { display: block; appearance: none; width: 214px; height: 44px; padding: 10px 36px 10px 15px; border: 1px solid #e8eaf2; border-radius: 10px; color: #6c7386; background: #fff; box-shadow: 0 0 0 1px #f5f5f9; font: 12px/1.5 Inter, Arial, sans-serif; cursor: pointer; }
.redesign .catalog-sort__select > i { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: #9298a9; font-size: 10px; pointer-events: none; }
.redesign .catalog-view { display: flex; flex-shrink: 0; gap: 8px; }
.redesign .catalog-view__button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 7px; color: #8b93aa; background: #f4f5fb; font-size: 16px; line-height: 1; cursor: pointer; transition: color .15s, background-color .15s; }
.redesign .catalog-view__button:hover { background: #e9e6fd; color: var(--site-accent); }
.redesign .catalog-view__button[aria-pressed="true"] { border-color: #ada3ef; color: #fff; background: linear-gradient(135deg, #5748dd, #4031c0); box-shadow: inset 0 0 0 2px #ffffff18; }
.redesign .catalog-view__button:focus-visible { outline: 2px solid #a195ff; outline-offset: 3px; }
.redesign .books-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 340px; padding: 48px 32px; border: 1px solid #eceaf8; border-radius: 16px; background: #f8f9fe; text-align: center; }
.redesign .books-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 24px; border-radius: 20px; color: var(--site-accent); background: #ebe8ff; font-size: 28px; }
.redesign .books-empty h2 { max-width: 480px; margin: 0 0 14px; color: #293044; font: 600 24px/1.35 Inter, Arial, sans-serif; }
.redesign .books-empty p { max-width: 410px; margin: 0 0 26px; color: #798197; font-size: 14px; line-height: 1.75; }
.redesign .books-empty__button { min-height: 46px; padding: 12px 24px; border-radius: 10px; background: var(--site-accent); font-size: 13px; }
.redesign .books-empty__button:hover { color: #fff; background: #3927b7; }
.redesign .books-empty__button i { font-size: 12px; }
.redesign .books-grid[data-view="list"] { grid-template-columns: minmax(0, 1fr); gap: 0; }
.redesign .books-grid[data-view="list"] .book-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 24px; align-items: start; padding: 20px 0; border-bottom: 1px solid #eceef5; }
.redesign .books-grid[data-view="list"] .book-card:first-child { padding-top: 0; }
.redesign .books-grid[data-view="list"] .book-card__cover { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
.redesign .books-grid[data-view="list"] .book-card h3 { grid-column: 2; min-height: 0; margin-bottom: 10px; font-size: 16px; }
.redesign .books-grid[data-view="list"] .book-card__author { grid-column: 2; font-size: 13px; }
.redesign .books-grid[data-view="list"] .book-card__category { grid-column: 2; justify-self: start; }
.redesign .books-grid[data-view="list"] .book-card__rating { grid-column: 2; }
@media (max-width: 1199px) {
  .redesign .catalog-toolbar__controls { gap: 16px; }
  .redesign .catalog-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .redesign .catalog-sort select { width: 190px; }
}
@media (max-width: 767px) {
  .redesign .catalog-toolbar { flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
  .redesign .catalog-toolbar__count { width: 100%; font-size: 15px; }
  .redesign .catalog-toolbar__controls { justify-content: space-between; width: 100%; gap: 12px; }
  .redesign .catalog-sort { flex: 1; min-width: 0; }
  .redesign .catalog-sort__select { width: 100%; max-width: 250px; }
  .redesign .catalog-sort select { width: 100%; padding-left: 12px; }
  .redesign .catalog-view { gap: 6px; }
  .redesign .catalog-view__button { width: 40px; }
  .redesign .books-grid[data-view="list"] .book-card { grid-template-columns: 90px minmax(0, 1fr); column-gap: 18px; }
  .redesign .books-grid[data-view="list"] .book-card h3 { font-size: 14px; }
  .redesign .books-grid[data-view="list"] .book-card__author { font-size: 12px; }
  .redesign .books-empty { min-height: 300px; padding: 32px 20px; border-radius: 14px; }
  .redesign .books-empty__icon { width: 58px; height: 58px; margin-bottom: 20px; border-radius: 17px; font-size: 24px; }
  .redesign .books-empty h2 { font-size: 21px; }
  .redesign .books-empty p { margin-bottom: 22px; font-size: 13px; }
  .redesign .books-empty__button { width: 100%; max-width: 300px; }
}
.redesign .catalog-sort select:focus-visible, .redesign .catalog-view__button:focus-visible { outline: 3px solid #7e76ff; outline-offset: 3px; }
