/* Публичный сайт: цифровой музей и мастерская. Графит, тёплый светлый фон, медный акцент. */
:root {
  --bg: #f3eee6; --bg-sunk: #ebe4d8; --surface: #fbf8f2;
  --ink: #1f1d1a; --ink-2: #5a544b; --line: #d8cfc1; --line-strong: #bdb2a1;
  --copper: #9a4a1c; --copper-hover: #7f3b14; --on-copper: #ffffff; --copper-soft: #f0e0d2;
  --ok: #2f6a4a;
  --graphite: #23211e; --on-graphite: #e9e3d8; --on-graphite-2: #aaa296;
  --shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 8px 24px -12px rgba(31, 29, 26, .25);
  --radius: 6px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Literata', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a18; --bg-sunk: #151412; --surface: #25231f;
    --ink: #ece6db; --ink-2: #aaa296; --line: #37342e; --line-strong: #4d493f;
    --copper: #e09a66; --copper-hover: #eeb083; --on-copper: #1b1a18; --copper-soft: #3a2b20;
    --ok: #7fc79d; --graphite: #121110; --on-graphite: #e4ded3; --on-graphite-2: #9c9589;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1a18; --bg-sunk: #151412; --surface: #25231f;
  --ink: #ece6db; --ink-2: #aaa296; --line: #37342e; --line-strong: #4d493f;
  --copper: #e09a66; --copper-hover: #eeb083; --on-copper: #1b1a18; --copper-soft: #3a2b20;
  --ok: #7fc79d; --graphite: #121110; --on-graphite: #e4ded3; --on-graphite-2: #9c9589;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html[lang="he"] { --sans: 'Heebo', 'Inter', system-ui, 'Segoe UI', Arial, sans-serif; --serif: 'Frank Ruhl Libre', 'Literata', Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.62 var(--sans); font-optical-sizing: auto; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--copper); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-hover); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--graphite); color: var(--on-graphite); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.meta, .muted { color: var(--ink-2); font-size: .9rem; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.02rem; letter-spacing: .005em; color: var(--ink); text-decoration: none; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--copper); box-shadow: inset 0 0 0 3px var(--bg), 0 0 0 1.5px var(--copper); }
.bar-tools { display: flex; align-items: center; gap: 6px; }
.langs { display: flex; gap: 2px; }
.langs a { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; padding: 6px 9px; border-radius: 99px; border: 1px solid transparent; }
.langs a:hover { color: var(--ink); border-color: var(--line); }
.langs a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.theme-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--ink); }
@media (max-width: 520px) { .bar { flex-wrap: wrap; padding-block: 8px; } .langs a { padding: 5px 7px; } }

/* Заглавный экран */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 0 0 18px; }
html[lang="he"] .eyebrow, html[lang="ru"] .eyebrow { letter-spacing: .08em; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.015em; margin-bottom: 22px; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 56ch; margin-bottom: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0 0 30px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.stats > div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 500 2rem/1.1 var(--serif); font-variant-numeric: lining-nums; }
.stats dt { color: var(--ink-2); font-size: .85rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 .95rem/1 var(--sans); padding: 12px 20px; border-radius: 99px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--copper); border-color: var(--copper); color: var(--on-copper); }
.btn-primary:hover { background: var(--copper-hover); border-color: var(--copper-hover); color: var(--on-copper); }
.hero-photo { margin: 0; position: relative; }
.hero-photo > a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-sunk); aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.hero-photo > a img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.hero-photo figcaption a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.hero-photo figcaption a:hover { color: var(--copper); border-color: var(--copper); }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); }

/* Каталог */
.catalog { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(48px, 7vw, 96px); scroll-margin-top: 70px; }
.sec-title { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 22px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.field { display: block; }
.field.grow { flex: 1 1 280px; }
.toolbar input[type="search"], .toolbar select { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 14px; min-height: 44px; }
.toolbar input[type="search"]::placeholder { color: var(--ink-2); opacity: .85; }
.toolbar input:focus, .toolbar select:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.toolbar .btn { min-height: 44px; }
.js .toolbar .btn[type="submit"] { display: none; }
.reset { font-size: .9rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chips a { flex: none; display: inline-flex; gap: 8px; align-items: baseline; font-size: .9rem; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; white-space: nowrap; }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips .n { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
.count { color: var(--ink-2); font-size: .9rem; margin: 6px 0 18px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.card { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: var(--copper); color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-sunk); overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.stamp-big { font: 500 clamp(2.4rem, 6vw, 3.4rem)/1 var(--serif); color: var(--copper); letter-spacing: .04em; opacity: .85; transform: rotate(-3deg); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin: 0 0 4px; }
.card-kicker a { color: inherit; text-decoration: none; }
.card-title { font: 600 1.04rem/1.3 var(--sans); margin: 0 0 4px; text-wrap: pretty; }
.card-meta { color: var(--ink-2); font-size: .88rem; margin: 0; }
.card-years { color: var(--ink-2); font-size: .85rem; margin: auto 0 0; padding-top: 8px; font-variant-numeric: tabular-nums; }
.empty { color: var(--ink-2); padding: 48px 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; }
.pager a, .pager .off { min-width: 40px; padding: 9px 14px; text-align: center; border: 1px solid var(--line-strong); border-radius: 99px; font-size: .9rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.pager .off { opacity: .4; }
.pager .gap { color: var(--ink-2); padding: 0 2px; }
.is-loading #catalog-live { opacity: .55; transition: opacity .15s; }

/* Страница предмета */
.item { padding-bottom: 72px; }
.crumbs { margin: 20px 0 18px; font-size: .9rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--copper); }
.item-top { display: grid; gap: clamp(20px, 3.5vw, 48px); align-items: start; }
@media (min-width: 960px) { .item-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .passport { position: sticky; top: 84px; } }
.gallery { min-width: 0; }
.g-main { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; touch-action: pan-y; }
.g-main img { width: 100%; height: 100%; object-fit: contain; }
.g-zoom { position: absolute; inset-inline-end: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--ink); border: 1px solid var(--line); }
.g-thumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.g-thumbs li { flex: none; scroll-snap-align: start; }
.g-thumbs a { display: block; width: 76px; height: 76px; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--bg-sunk); }
.g-thumbs a[aria-current="true"] { border-color: var(--copper); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { aspect-ratio: 4 / 3; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.nophoto { color: var(--ink-2); margin: 0; padding: 20px; text-align: center; }
.passport h1 { font: 500 clamp(1.8rem, 3.6vw, 2.7rem)/1.12 var(--serif); letter-spacing: -.01em; margin: 2px 0 10px; }
.sub { color: var(--ink-2); margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr; margin: 0 0 18px; border-top: 1px solid var(--ink); font-size: .95rem; }
.facts dt, .facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; padding-inline-end: 12px; }
.dims { margin: 0 0 18px; }
.dims h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.dims ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dims li { display: flex; gap: 8px; align-items: baseline; font-size: .85rem; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 99px; }
.dims li span { color: var(--ink-2); } .dims b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lead { color: var(--ink-2); margin-bottom: 8px; }
.more { font-weight: 500; text-decoration: none; }
.toc { display: flex; gap: 6px; overflow-x: auto; margin: 36px 0 0; padding: 10px 0; border-block: 1px solid var(--line); position: sticky; top: 60px; z-index: 20; background: var(--bg); scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; font-size: .88rem; padding: 6px 12px; border-radius: 99px; color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.on { background: var(--copper-soft); color: var(--copper); }
.item-body { max-width: 860px; }
.sec { padding-top: clamp(32px, 5vw, 56px); }
.sec > h2 { font: 500 clamp(1.4rem, 2.4vw, 1.8rem)/1.2 var(--serif); margin-bottom: 18px; letter-spacing: -.005em; }
.sec h3 { font: 600 1rem/1.3 var(--sans); margin: 28px 0 12px; }
.prose { max-width: 66ch; } .prose p { margin-bottom: 1em; }
.comps { width: 100%; border-collapse: collapse; font-size: .95rem; }
.comps th, .comps td { text-align: start; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
html[dir="rtl"] .comps th, html[dir="rtl"] .comps td { padding: 10px 0 10px 14px; }
.comps th { font-weight: 600; width: 9rem; }
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.mark { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mark-photo { display: block; aspect-ratio: 16 / 10; background: var(--bg-sunk); border-bottom: 1px solid var(--line); cursor: zoom-in; }
.mark-photo img { width: 100%; height: 100%; object-fit: cover; }
.mark-body { display: grid; grid-template-columns: 5.2rem 1fr; gap: 14px; padding: 14px; align-items: start; }
.mark p { margin: 0 0 .4em; font-size: .93rem; }
.imp { aspect-ratio: 1; display: grid; place-items: center; text-align: center; font: 600 1.5rem/1.1 var(--serif); border: 2px solid var(--copper); color: var(--copper); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; padding: 6px; overflow: hidden; overflow-wrap: anywhere; }
.imp.unknown { border-style: dashed; } .imp.sm { font-size: 1.05rem; } .imp.none { color: var(--ink-2); border-color: var(--line-strong); }
.badge { display: inline-block; font-size: .76rem; padding: 1px 9px; border-radius: 99px; border: 1px solid currentColor; }
.badge.ok { color: var(--ok); } .badge.open { color: var(--copper); }
.timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 20px; }
html[dir="rtl"] .timeline li { padding: 0 20px 18px 0; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -7px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--copper); }
.timeline li.planned::before { background: var(--bg); border: 2px solid var(--copper); }
.timeline time { display: block; font-size: .82rem; color: var(--ink-2); }
.note { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--copper); border-radius: var(--radius); padding: 14px 18px; max-width: 66ch; }
.note h3 { margin-top: 0; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.note p { margin: 0; }
.src { padding-inline-start: 1.2em; } .src li { margin-bottom: .4em; overflow-wrap: anywhere; }
.private { border-top: 1px solid var(--line); margin-top: 48px; }
.private dl.facts { margin-top: 8px; }
.lock { color: var(--ink-2); }

/* Сравнение «до/после» */
.compare { margin: 8px 0 24px; max-width: 760px; }
.cmp-stage { --pos: 50%; position: relative; aspect-ratio: var(--ratio, 4 / 3); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-sunk); touch-action: pan-y; user-select: none; }
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
html[dir="rtl"] .cmp-before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.cmp-handle { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--pos); width: 2px; margin-inline-start: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; }
.cmp-handle::after { content: '↔'; position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #222; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); font-size: 1rem; }
html[dir="rtl"] .cmp-handle::after { transform: translate(50%, -50%); }
.cmp-label { position: absolute; top: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(20, 19, 17, .72); color: #fff; font-size: .78rem; }
.cmp-l-before { inset-inline-start: 10px; } .cmp-l-after { inset-inline-end: 10px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp-range:focus-visible + * , .cmp-stage:has(.cmp-range:focus-visible) { outline: 2px solid var(--copper); outline-offset: 3px; }
.compare figcaption { font-size: .88rem; color: var(--ink-2); margin-top: 8px; }

/* Просмотр фото */
dialog.lb { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: #f2ede4; }
dialog.lb::backdrop { background: rgba(14, 13, 12, .96); }
.lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.lb-stage.zoomed { cursor: grab; } .lb-stage.drag { cursor: grabbing; }
.lb-img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb-top, .lb-bottom { position: absolute; inset-inline: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; z-index: 2; pointer-events: none; }
.lb-top { top: 0; justify-content: space-between; background: linear-gradient(rgba(14, 13, 12, .7), transparent); }
.lb-bottom { bottom: 0; flex-direction: column; align-items: flex-start; background: linear-gradient(transparent, rgba(14, 13, 12, .75)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.lb-top > *, .lb-bottom > * { pointer-events: auto; }
.lb-count { font-size: .9rem; font-variant-numeric: tabular-nums; }
.lb-tools { display: flex; gap: 6px; }
.lb-btn { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(30, 28, 25, .65); color: #fff; font: 500 1.2rem/1 var(--sans); cursor: pointer; }
.lb-btn:hover { background: rgba(70, 64, 56, .85); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { inset-inline-start: 12px; } .lb-next { inset-inline-end: 12px; }
html[dir="rtl"] .lb-prev svg, html[dir="rtl"] .lb-next svg { transform: scaleX(-1); }
.lb-cap { margin: 0; font-size: .95rem; max-width: 70ch; }
.lb-hint { margin: 4px 0 0; font-size: .78rem; color: #b9b2a6; }
@media (max-width: 700px) { .lb-hint { display: none; } .lb-nav { top: auto; bottom: 74px; transform: none; } }

/* Подвал */
.site-footer { background: var(--graphite); color: var(--on-graphite-2); padding: 28px 0; font-size: .88rem; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot span:first-child { color: var(--on-graphite); font-weight: 500; }
.notfound { padding-top: 64px; padding-bottom: 96px; }
.notfound h1 { font: 500 clamp(2rem, 5vw, 3rem)/1.1 var(--serif); margin-bottom: 16px; }

/* Движение: только когда пользователь не просил его уменьшить */
@media (prefers-reduced-motion: no-preference) {
  .card, .chips a, .btn, .toc a { transition: border-color .15s, background-color .15s, color .15s; }
  .card-media img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .card:hover .card-media img { transform: scale(1.035); }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; }
  .mark-body { grid-template-columns: 4.2rem 1fr; } .imp { font-size: 1.2rem; }
  .comps th { width: 6.5rem; }
}
@media print { .site-header, .toc, .lb, .toolbar, .theme-btn { display: none !important; } body { background: #fff; color: #000; } }
