@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #272128;
  --muted: #685f66;
  --accent: #963d50;
  --accent-active: #7c2c42;
  --accent-soft: #f8e9ec;
  --line: #ebe3e4;
  --tint: #f8f4f4;
  --paper: #fff;
  --page-width: 1248px;
  --gutter: 32px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
body:has(.drawer[open]) { overflow: hidden; }
a { text-decoration: none; color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(var(--page-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; top: 8px; left: 8px; background: white; padding: 12px; z-index: 9; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { background: #fffaf9; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.header-main { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; line-height: 1; font-weight: 760; letter-spacing: -.055em; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: inherit; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.catalog-toggle, .header-audio, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; min-height: 44px; padding: 0 15px; font-size: 14px; font-weight: 650; white-space: nowrap; }
.catalog-toggle, .primary { color: #fff; background: var(--accent); }
.catalog-toggle:hover, .primary:hover { background: var(--accent-active); }
.header-audio { color: var(--accent); padding-inline: 10px; }
.header-audio:hover { background: var(--accent-soft); }
.search-wrap { min-width: 0; position: relative; }
.search { display: flex; align-items: center; gap: 10px; height: 46px; min-width: 0; padding: 3px 3px 3px 14px; background: #fff; border: 1px solid #e1d5da; border-radius: 11px; color: var(--muted); }
.search:focus-within { border-color: #bc7b8a; }
.search input { width: 100%; min-width: 0; padding: 0; outline: none; border: 0; background: none; font-size: 14px; color: var(--ink); }
.search button { height: 36px; border: 0; border-radius: 8px; padding-inline: 15px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 650; }
.search button:hover { background: #f3dbe1; }
.suggestions { position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 5; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px #44223820; }
.suggestions a { display: grid; grid-template-columns: 33px 1fr auto; gap: 11px; align-items: center; min-height: 58px; padding: 7px 12px; }
.suggestions a:hover, .suggestions a:focus-visible { background: var(--tint); }
.suggestions img { height: 42px; width: 33px; object-fit: contain; }
.suggestions strong, .suggestions small { display: block; }
.suggestions strong { font-size: 14px; }
.suggestions small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.quick-nav { display: flex; align-items: center; gap: 21px; overflow-x: auto; scrollbar-width: none; min-height: 41px; font-size: 13px; font-weight: 570; }
.quick-nav a { display: inline-flex; align-items: center; align-self: stretch; border-bottom: 2px solid transparent; flex: none; }
.quick-nav a[aria-current], .quick-nav a:hover { border-color: var(--accent); color: var(--accent); }
.quick-nav a:focus-visible { outline-offset: -2px; }
.results { padding-block: 30px 56px; }
.results-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 13px; margin-bottom: 20px; }
.results-heading h1 { margin: 0; font-size: clamp(29px, 3.1vw, 45px); line-height: 1.11; letter-spacing: -.065em; overflow-wrap: anywhere; }
.results-heading p { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.control { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); min-height: 39px; font-size: 13px; font-weight: 570; white-space: nowrap; }
.control:hover, .control.selected { background: var(--accent-soft); border-color: #e9ccd3; }
.control .icon, .applied-chip .icon { width: 16px; height: 16px; }
.field-select { position: relative; padding: 0; }
.field-select select { display: block; appearance: none; min-height: 38px; padding: 0 31px 0 12px; margin: 0; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.field-select > .icon:last-child, .filter-toggle > .icon { transform: rotate(90deg); }
.field-select > .icon:last-child { position: absolute; right: 9px; pointer-events: none; }
.sort-select { margin-left: auto; }
.sort-select select { padding-left: 31px; }
.sort-select > .icon:first-child { position: absolute; left: 10px; pointer-events: none; }
.filter-count { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: white; font-size: 11px; }
.applied { display: flex; gap: 7px; flex-wrap: wrap; margin: -6px 0 16px; }
.applied-chip { display: inline-flex; gap: 6px; align-items: center; border: 0; border-radius: 30px; padding: 5px 9px; background: var(--accent-soft); color: var(--accent-active); font-size: 12px; }
.book-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; }
.book-card { min-width: 0; }
.book-link { display: block; border-radius: 10px; }
.book-cover { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; position: relative; overflow: hidden; aspect-ratio: 1 / 1.14; padding: clamp(18px, 2.1vw, 31px) clamp(16px, 1.8vw, 26px); border-radius: 10px; background: #f4ecee; }
.book-cover.sage { background: #eaf0eb; }
.book-cover.sand { background: #f6eee3; }
.book-cover.lilac { background: #f1edf6; }
.book-cover.cloud { background: #edf0f5; }
.book-cover img { width: auto; height: 100%; max-width: 100%; min-height: 0; object-fit: contain; border-radius: 2px 4px 4px 2px; filter: drop-shadow(4px 6px 5px #25172340); transition: transform .16s ease; }
.book-link:hover .book-cover img { transform: translateY(-3px); }
.audio-badge { display: inline-flex; align-items: center; gap: 4px; position: absolute; left: 8px; top: 8px; padding: 4px 6px; border-radius: 5px; background: #fff; color: #5c4454; font-size: 10px; font-weight: 700; }
.audio-badge .icon { width: 13px; height: 13px; }
.book-meta { padding: 9px 1px 3px; }
.price-row { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.price { font-size: 19px; font-weight: 760; letter-spacing: -.043em; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 620; color: #634c53; }
.rating .icon { width: 14px; height: 14px; fill: #f2c28d; stroke: #9f5736; stroke-width: 1.25; }
.book-title { margin: 5px 0 3px; font-size: 14px; line-height: 1.35; font-weight: 660; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-link:hover .book-title, .product-author:hover, .facts a:hover { color: var(--accent); }
.book-author { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 29px; }
.pagination a { display: grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.pagination a:hover, .pagination a[aria-current] { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent-active); }
.empty { padding: 42px 14px; text-align: center; background: var(--tint); border-radius: 13px; }
.empty h2 { margin: 0; }
.empty p { color: var(--muted); }
.footer { background: #fffaf9; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(0, 4fr); gap: 28px; padding-block: 32px 38px; color: var(--muted); font-size: 13px; }
.footer .brand { color: var(--ink); font-size: 18px; }
.footer .brand-mark { width: 30px; height: 30px; }
.footer-brand p { margin: 12px 0 0; line-height: 1.45; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-group h2 { margin: 4px 0 4px; color: var(--ink); font-size: 14px; font-weight: 660; }
.footer-group a { line-height: 1.4; }
.footer-group a:hover, .footer-group a[aria-current], .header-audio[aria-current] { color: var(--accent); }
dialog { color: var(--ink); background: white; border: 0; }
dialog::backdrop { background: #25172264; }
.drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(390px, 94vw); height: 100dvh; max-height: 100dvh; max-width: none; padding: 0; overscroll-behavior: contain; box-shadow: 8px 0 36px #351b2d33; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: drawer-enter .18s ease-out; }
  @keyframes drawer-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
}
.menu-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.menu-header h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 9px; background: var(--tint); }
.icon-button:hover { background: var(--accent-soft); }
.menu-links { padding: 13px 15px 22px; }
.menu-links a { display: flex; justify-content: flex-start; align-items: center; gap: 9px; padding: 0 12px; min-height: 38px; border-radius: 7px; font-size: 14px; color: var(--ink); }
.menu-links a:hover, .menu-links a[aria-current] { background: var(--accent-soft); color: var(--accent-active); }
.menu-links h3 { color: var(--muted); margin: 17px 12px 3px; font-size: 12px; font-weight: 650; }
.filter-dialog form { display: flex; flex-direction: column; min-height: 100%; }
.filter-fields { display: grid; gap: 16px; padding: 20px 21px; }
.filter-fields > label, .price-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 610; }
.filter-fields select, .price-fields input { width: 100%; min-height: 41px; padding: 7px 9px; border: 1px solid #ded3d7; border-radius: 8px; background: white; }
.filter-fields fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.filter-fields legend { padding: 0 0 6px; font-size: 14px; font-weight: 610; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-fields label span { font-size: 12px; color: var(--muted); }
.filter-actions { margin-top: auto; position: sticky; bottom: 0; padding: 14px 21px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.filter-actions .primary { width: 100%; }
.product { padding-block: 24px 55px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .icon { width: 13px; height: 13px; }
.breadcrumbs [aria-current] { color: var(--ink); }
.product-grid { display: grid; grid-template-columns: minmax(240px, 1.08fr) minmax(0, 1.3fr) minmax(194px, .73fr); gap: 24px; align-items: start; }
.product-cover { display: grid; place-items: center; padding: 24px; border-radius: 14px; background: #f4eef3; min-height: 355px; }
.product-cover img { max-height: 370px; object-fit: contain; border-radius: 3px 6px 6px 3px; filter: drop-shadow(5px 9px 9px #29172738); }
.product-info h1 { font-size: clamp(28px, 3vw, 44px); line-height: 1.11; letter-spacing: -.059em; margin: 10px 0 7px; overflow-wrap: anywhere; }
.format-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-active); font-size: 13px; font-weight: 620; }
.format-label .icon { width: 17px; height: 17px; }
.product-author { display: block; width: fit-content; color: var(--muted); font-weight: 560; margin-bottom: 12px; }
.description { margin-top: 22px; }
.description h2 { margin: 0 0 6px; font-size: 17px; }
.description p { margin: 0; line-height: 1.55; font-size: 14px; overflow-wrap: anywhere; }
.facts { display: grid; gap: 8px; margin: 22px 0 0; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 94px 1fr; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 570; }
.buy-box { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fffafa; }
.buy-box strong { font-size: 29px; letter-spacing: -.04em; }
.buy-box .primary { width: 100%; white-space: normal; padding: 8px; }
.buy-box .icon { width: 17px; height: 17px; }
.related { margin-top: 32px; }
.related > h2 { font-size: 24px; letter-spacing: -.045em; margin: 0 0 14px; }
@media (max-width: 990px) {
  .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .header-main { gap: 11px; }
  .header-main .header-audio { padding-inline: 8px; }
  .product-grid { grid-template-columns: minmax(215px, 1fr) minmax(0, 1.45fr); }
  .buy-box { grid-column: 2; }
  .product-cover { grid-row: span 2; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .header-main { display: grid; grid-template-columns: 1fr auto auto; min-height: 0; padding-block: 10px 5px; gap: 8px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .catalog-toggle { min-height: 36px; padding-inline: 9px; font-size: 12px; gap: 4px; }
  .catalog-toggle .icon, .header-main .header-audio .icon { width: 17px; height: 17px; }
  .header-main .header-audio { grid-column: 3; grid-row: 1; min-height: 36px; padding-inline: 9px; white-space: nowrap; background: var(--accent-soft); }
  .header-main .header-audio span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .search-wrap { grid-column: 1/-1; grid-row: 2; }
  .search { height: 43px; padding-left: 9px; gap: 7px; }
  .search button { height: 33px; font-size: 12px; padding-inline: 10px; }
  .quick-nav { gap: 15px; min-height: 38px; font-size: 12px; }
  .results { padding-block: 20px 35px; }
  .results-heading { margin-bottom: 14px; }
  .results-heading p { font-size: 12px; }
  .toolbar { gap: 6px; margin-bottom: 14px; }
  .control { min-height: 34px; padding-inline: 8px; font-size: 12px; }
  .field-select { padding: 0; }
  .field-select select { min-height: 34px; padding-left: 8px; }
  .sort-select select { padding-left: 28px; }
  .sort-select > .icon:first-child { left: 8px; }
  .sort-select { margin-left: 0; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .book-cover { padding: 16px; }
  .price { font-size: 16px; }
  .book-title { font-size: 13px; }
  .product { padding-top: 15px; }
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product-cover { grid-row: auto; min-height: 0; }
  .product-cover img { max-height: 245px; }
  .buy-box { grid-column: auto; grid-row: 3; }
  .footer-inner { gap: 22px; padding-block: 22px 28px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 480px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.cover-placeholder { color: #963d50; display: grid; min-height: 76px; place-items: center; }
.cover-placeholder .icon { width: 44px; height: 44px; opacity: .65; }
.age-badge { position: absolute; top: 8px; right: 8px; padding: 4px 6px; background: #fff; color: #5c4454; border-radius: 5px; font-size: 10px; }
.pagination span { display: grid; place-items: center; min-width: 12px; }
.pagination a { padding-inline: 4px; }
.suggestion-cover .cover-placeholder { min-height: 32px; }
.suggestion-cover .cover-placeholder .icon { width: 20px; height: 20px; }
