:root {
    --bg: #f7f9fb;
    --surface: #ffffff;
    --surface-soft: #f1f5f7;
    --text: #132238;
    --muted: #657386;
    --line: #e2e8ee;
    --primary: #0f766e;
    --primary-dark: #0b5d57;
    --primary-soft: #e6f4f2;
    --navy: #17324d;
    --shadow: 0 16px 40px rgba(24, 46, 70, .08);
    --radius: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}
body.reader-page { background: #0c1117; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { outline-color: var(--primary); }
img { max-width: 100%; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    height: 76px; background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px); border-bottom: 1px solid rgba(226,232,238,.8);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 245px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    color: #fff; background: var(--primary); font-weight: 800; font-size: 19px;
    box-shadow: 0 8px 20px rgba(15,118,110,.22);
}
.brand strong { display: block; font-size: 14px; letter-spacing: -.2px; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; }

/* Full logo image */
.brand--full-logo {
    display: inline-flex;
    align-items: center;
    width: 170px;
    min-width: 170px;
    height: 76px;
    overflow: hidden;
    text-decoration: none;
}
.brand--full-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.brand--footer.brand--full-logo {
    width: 220px;
    min-width: 220px;
    height: 150px;
    align-items: flex-start;
}
.brand--footer.brand--full-logo img { object-position: left top; }

.main-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main-nav a {
    padding: 9px 12px; border-radius: 9px; color: #526173; font-size: 13px; font-weight: 700;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--surface-soft); color: var(--text); }
.header-search-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px;
    border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 700; font-size: 13px;
}
.header-search-link:hover { border-color: #bfcbd5; background: #fff; }
.mobile-menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px; background: var(--text); border-radius: 3px; }

.hero { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero-copy { padding: 64px 0; position: relative; z-index: 2; }
.eyebrow, .section-kicker {
    color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1.7px;
}
.hero h1 { margin: 15px 0 18px; font-size: clamp(40px, 5vw, 67px); line-height: 1.04; letter-spacing: -2.7px; max-width: 700px; }
.hero h1 span { color: var(--primary); }
.hero-copy > p { max-width: 600px; margin: 0 0 28px; color: var(--muted); font-size: 16px; }
.hero-search, .catalog-search {
    display: flex; align-items: center; gap: 10px; background: #fff;
    border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 7px 8px 7px 15px;
}
.hero-search { max-width: 630px; }
.search-icon { font-size: 25px; color: #8290a0; line-height: 1; }
.hero-search input, .catalog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.hero-search input::placeholder, .catalog-search input::placeholder { color: #9aa6b4; }
.hero-hints { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 15px; color: #8290a0; font-size: 11px; }
.hero-hints a { padding: 5px 9px; border-radius: 20px; background: var(--surface-soft); color: #526173; }
.hero-hints a:hover { color: var(--primary); background: var(--primary-soft); }

.hero-visual { min-height: 520px; position: relative; display: grid; place-items: center; }
.hero-orbit { position: absolute; border: 1px solid #e6ecef; border-radius: 50%; }
.orbit-one { width: 450px; height: 450px; }
.orbit-two { width: 310px; height: 310px; border-color: #d9e9e7; }
.hero-book-stack { width: 280px; height: 360px; position: relative; transform: rotate(-7deg); filter: drop-shadow(0 30px 30px rgba(18,41,60,.12)); }
.stack-card { position: absolute; inset: 0; border-radius: 20px; }
.stack-card--back { transform: translate(42px, 18px) rotate(9deg); background: #cfe1df; }
.stack-card--middle { transform: translate(21px, 9px) rotate(4deg); background: #17324d; }
.stack-card--front {
    padding: 34px 30px; color: white; background: var(--primary);
    display: flex; flex-direction: column;
}
.stack-label { font-size: 10px; letter-spacing: 2px; font-weight: 800; opacity: .7; }
.stack-title { margin-top: auto; font-size: 33px; line-height: 1.02; font-weight: 800; letter-spacing: -1.5px; }
.stack-line { width: 45px; height: 2px; background: rgba(255,255,255,.55); margin: 24px 0 11px; }
.stack-small { font-size: 9px; letter-spacing: 1.6px; opacity: .75; }
.hero-float { position: absolute; padding: 13px 17px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.hero-float strong { display: block; font-size: 17px; }
.hero-float span { display: block; color: var(--muted); font-size: 10px; }
.hero-float--one { top: 17%; left: 4%; }
.hero-float--two { bottom: 17%; right: 1%; }

.stats-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 24px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--navy); font-size: 23px; letter-spacing: -.7px; }
.stat span { color: var(--muted); font-size: 11px; }

.section { padding: 76px 0; }
.section--soft { background: #f1f5f7; border-top: 1px solid #e9eef2; border-bottom: 1px solid #e9eef2; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 5px 0 0; font-size: 28px; letter-spacing: -1px; }
.text-link { font-size: 12px; font-weight: 800; color: var(--primary); }
.text-link:hover { text-decoration: underline; }

.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.book-grid--catalog { grid-template-columns: repeat(4, minmax(0,1fr)); }
.book-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dfe6; }
.book-card__cover { position: relative; display: block; aspect-ratio: 3/4; background: #e9eef1; overflow: hidden; }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.book-card:hover .book-card__cover img { transform: scale(1.025); }
.book-cover-placeholder { width: 100%; height: 100%; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, #edf4f3, #dfe9ed); color: var(--navy); font-size: 16px; font-weight: 800; }
.placeholder-icon { font-size: 50px; line-height: 1; color: var(--primary); }
.book-badge { position: absolute; top: 11px; left: 11px; padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.92); color: var(--primary); font-size: 9px; font-weight: 800; }
.book-card__body { padding: 15px; }
.book-card__meta { color: #8a96a5; font-size: 9px; text-transform: uppercase; letter-spacing: .55px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card__title { margin: 7px 0 4px; font-size: 14px; line-height: 1.35; letter-spacing: -.25px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.book-card__title a:hover { color: var(--primary); }
.book-card__author { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-card__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.book-views { color: #8793a1; font-size: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 12px; transition: .18s ease; }
.btn--primary { color: #fff; background: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--small { min-height: 32px; padding: 0 11px; font-size: 10px; }
.btn--large { min-height: 48px; padding: 0 20px; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: #bdc9d2; background: #f9fbfc; }
.btn--light { color: var(--navy); background: #fff; }
.btn--disabled { color: #94a0ad; background: #e7ecef; cursor: not-allowed; }

.genre-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.genre-card { display: flex; align-items: center; gap: 13px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; transition: .18s ease; }
.genre-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.genre-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary); font-size: 19px; }
.genre-card__content { flex: 1; min-width: 0; }
.genre-card strong, .genre-card small { display: block; }
.genre-card strong { font-size: 12px; }
.genre-card small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.genre-arrow { color: #a3adb8; }

.specialty-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.specialty-card { display: flex; align-items: center; gap: 14px; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.specialty-card:hover { border-color: #bfd0d3; box-shadow: var(--shadow); }
.specialty-code { padding: 6px 8px; border-radius: 7px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 800; white-space: nowrap; }
.specialty-main { flex: 1; }
.specialty-main strong, .specialty-main small { display: block; }
.specialty-main strong { font-size: 12px; }
.specialty-main small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.specialty-arrow { color: var(--primary); font-weight: 800; }

.cta-section { padding: 0 0 80px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 42px; border-radius: 22px; background: var(--navy); color: #fff; }
.cta-card .section-kicker { color: #7bd2ca; }
.cta-card h2 { margin: 7px 0 7px; font-size: 28px; letter-spacing: -1px; }
.cta-card p { margin: 0; color: #afbdc9; font-size: 12px; }

.catalog-hero { padding: 60px 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.catalog-hero h1 { margin: 7px 0; font-size: 42px; letter-spacing: -1.6px; }
.catalog-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-section { padding: 28px 0 80px; }
.catalog-search { box-shadow: none; }
.clear-search { font-size: 22px; color: #8a97a5; padding: 4px 6px; }
.filter-toolbar { display: none; }
.filters { display: grid; grid-template-columns: repeat(4,1fr) auto; gap: 10px; align-items: end; padding: 16px 0; }
.filter-field label { display: block; margin-bottom: 6px; color: #778493; font-size: 10px; font-weight: 800; }
.filter-field select, .sort-select select {
    width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); outline: none;
}
.filter-field select:focus, .sort-select select:focus { border-color: var(--primary); }
.filter-submit { height: 42px; }
.filter-clear { grid-column: 1 / -1; color: var(--primary); font-size: 11px; font-weight: 800; }
.catalog-toolbar { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 8px 0 18px; }
.active-filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filter { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 20px; font-size: 10px; font-weight: 700; }
.active-filter a { font-size: 14px; }
.sort-select { display: flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--muted); font-size: 10px; }
.sort-select select { height: 34px; width: auto; min-width: 145px; }
.book-grid.is-loading { opacity: .45; pointer-events: none; }
.empty-state { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; border: 1px dashed #ccd7df; border-radius: 18px; background: #fff; }
.empty-state--grid { grid-column: 1 / -1; }
.empty-state__icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 22px; }
.empty-state h1, .empty-state h2 { margin: 0 0 6px; font-size: 22px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 28px; }
.pagination__item { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 11px; font-weight: 800; }
.pagination__item:hover, .pagination__item.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination__arrow { font-size: 18px; }
.pagination__dots { color: var(--muted); padding: 0 3px; }

.book-detail-section { padding: 42px 0 70px; background: #fff; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--muted); font-size: 11px; font-weight: 800; }
.back-link:hover { color: var(--primary); }
.book-detail { display: grid; grid-template-columns: 300px 1fr; gap: 54px; align-items: start; }
.book-detail__cover { aspect-ratio: 3/4; overflow: hidden; border-radius: 20px; background: #e9eef1; box-shadow: 0 24px 50px rgba(22,42,60,.13); }
.book-detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail__content { padding: 8px 0; }
.book-detail__eyebrow { display: flex; gap: 8px; align-items: center; color: var(--primary); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.book-detail__eyebrow span { padding: 4px 7px; border-radius: 5px; background: var(--primary-soft); }
.book-detail h1 { margin: 10px 0 5px; font-size: clamp(30px,4vw,48px); line-height: 1.1; letter-spacing: -1.7px; }
.book-detail__author { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.book-facts { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.book-facts > div { padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-facts span, .book-facts strong { display: block; }
.book-facts span { color: #8a96a4; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
.book-facts strong { margin-top: 4px; font-size: 11px; }
.book-detail__actions { display: flex; gap: 9px; margin-top: 25px; flex-wrap: wrap; }
.book-detail__stats { display: flex; gap: 18px; margin-top: 17px; color: #8793a1; font-size: 10px; }
.description-card { margin-top: 48px; padding: 30px 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); }
.description-card h2 { margin: 6px 0 10px; font-size: 22px; }
.description-card p { max-width: 850px; margin: 0; color: #5d6b7a; font-size: 13px; line-height: 1.8; }

.not-found { padding: 80px 0; }

.reader-page main { min-height: calc(100vh - 76px); }
.reader-shell { min-height: calc(100vh - 76px); background: #0c1117; }
.reader-toolbar {
    height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 0 18px; background: #131a22; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
}
.reader-toolbar__left, .reader-toolbar__right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.reader-back, .reader-action { border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #d8e0e8; border-radius: 8px; padding: 8px 10px; font-size: 10px; font-weight: 800; }
.reader-back { font-size: 19px; line-height: 1; }
.reader-action { cursor: pointer; }
.reader-action:hover, .reader-back:hover { background: rgba(255,255,255,.1); }
.reader-title { min-width: 0; }
.reader-title strong, .reader-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-title strong { max-width: 52vw; font-size: 12px; }
.reader-title span { max-width: 52vw; color: #8f9ba8; font-size: 9px; }
.reader-content { height: calc(100vh - 138px); min-height: 500px; background: #202832; position: relative; }
.reader-content iframe { width: 100%; height: 100%; border: 0; display: block; }
.reader-unavailable { height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; text-align: center; color: #fff; }
.reader-unavailable__icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.06); color: #6dd0c8; font-size: 28px; }
.reader-unavailable h1 { margin: 8px 0 0; font-size: 22px; }
.reader-unavailable p { margin: 0 0 15px; color: #9eabb8; font-size: 12px; }

.site-footer { background: #111d29; color: #dbe3e9; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 42px; }
.brand--footer strong { color: #fff; }
.brand--footer small { color: #8f9ba8; }
.footer-text { max-width: 300px; color: #8f9ba8; font-size: 11px; }
.footer-grid h3 { margin: 3px 0 14px; color: #fff; font-size: 11px; }
.footer-grid > div:not(:first-child) a { display: block; margin: 8px 0; color: #91a0ae; font-size: 10px; }
.footer-grid > div:not(:first-child) a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); color: #72808e; font-size: 9px; }

@media (max-width: 1100px) {
    .brand--full-logo { width: 155px; min-width: 155px; height: 70px; }
    .book-grid, .book-grid--catalog { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .genre-grid { grid-template-columns: repeat(2,1fr); }
    .hero-grid { grid-template-columns: 1fr .75fr; }
    .hero-visual { transform: scale(.88); }
}

@media (max-width: 820px) {
    .brand--full-logo { width: 140px; min-width: 140px; height: 64px; }
    .brand--footer.brand--full-logo { width: 190px; min-width: 190px; height: 130px; }
    .container { width: min(var(--container), calc(100% - 28px)); }
    .site-header { height: 68px; }
    .brand { min-width: 0; }
    .brand strong { font-size: 12px; }
    .brand small { display: none; }
    .mobile-menu-toggle { display: block; }
    .main-nav {
        position: absolute; top: 68px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch;
        padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px; }
    .header-search-link { display: none; }
    .hero-grid { min-height: 0; grid-template-columns: 1fr; }
    .hero-copy { padding: 58px 0 24px; }
    .hero h1 { letter-spacing: -1.8px; }
    .hero-visual { min-height: 350px; transform: scale(.82); margin-top: -35px; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .stat { border-bottom: 1px solid var(--line); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
    .filters { display: none; grid-template-columns: 1fr 1fr; }
    .filters.is-open { display: grid; }
    .filter-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
    .filter-toggle { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 12px; font-weight: 800; font-size: 11px; }
    .book-grid, .book-grid--catalog { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
    .book-card__body { padding: 12px; }
    .book-card__title { font-size: 12px; }
    .book-detail { grid-template-columns: 210px 1fr; gap: 28px; }
    .book-facts { grid-template-columns: repeat(2,1fr); }
    .specialty-list { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .brand--full-logo { width: 120px; min-width: 120px; height: 56px; }
    .container { width: calc(100% - 22px); }
    .hero-copy { padding-top: 45px; }
    .hero h1 { font-size: 39px; }
    .hero-copy > p { font-size: 13px; }
    .hero-search { padding: 6px; }
    .hero-search .btn { padding: 0 12px; }
    .hero-hints { font-size: 10px; }
    .hero-visual { min-height: 310px; transform: scale(.7); margin: -45px 0 -15px; }
    .hero-float--one { left: -2%; }
    .hero-float--two { right: -2%; }
    .section { padding: 54px 0; }
    .section-heading { align-items: start; flex-direction: column; gap: 8px; }
    .section-heading h2 { font-size: 23px; }
    .book-grid, .book-grid--catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .book-card__cover { aspect-ratio: .76; }
    .book-card__meta { font-size: 8px; }
    .book-card__title { min-height: 34px; }
    .book-card__author { font-size: 9px; }
    .book-views { font-size: 8px; }
    .btn--small { min-height: 29px; font-size: 9px; padding: 0 9px; }
    .genre-grid { grid-template-columns: 1fr; }
    .catalog-hero { padding: 40px 0 25px; }
    .catalog-hero h1 { font-size: 35px; }
    .catalog-search { border-radius: 12px; }
    .catalog-search .btn { padding: 0 12px; }
    .filters.is-open { grid-template-columns: 1fr; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .sort-select { width: 100%; justify-content: space-between; }
    .sort-select select { flex: 1; }
    .book-detail { grid-template-columns: 1fr; gap: 25px; }
    .book-detail__cover { width: min(260px, 72vw); margin: 0 auto; }
    .book-detail h1 { font-size: 31px; }
    .book-facts { grid-template-columns: 1fr 1fr; }
    .book-detail__actions .btn { flex: 1; }
    .description-card { padding: 22px; }
    .reader-toolbar { height: 58px; padding: 0 8px; }
    .reader-title strong { max-width: 43vw; }
    .reader-title span { display: none; }
    .reader-action { padding: 7px 8px; }
    .reader-content { height: calc(100vh - 126px); min-height: 420px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid > div:first-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 5px; }
}

@media (max-width: 340px) {
    .brand strong { font-size: 11px; }
    .book-grid, .book-grid--catalog { gap: 8px; }
    .book-card__body { padding: 9px; }
    .book-card__title { font-size: 11px; }
    .book-card__bottom { gap: 4px; }
}
