@font-face {
  font-family: Manrope;
  src: url("/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Unbounded;
  src: url("/fonts/Unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("/fonts/NotoSansSC-subset.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+F900-FAFF;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --ink: #1c2128;
  --ink-soft: #5d6772;
  --line: #e4e7eb;
  --line-strong: #d5dae0;
  --link: #1d4e89;
  --link-hover: #163a66;
  --accent: #1d4e89;
  --ok: #1d6b45;
  --warn: #8a3d16;
  --pine: #1c2128;
  --pine-2: #2c333b;
  --paper: var(--bg);
  --paper-2: var(--bg-soft);
  --copper: var(--link);
  --copper-deep: var(--link);
  --moss: #eef3f8;
  --shadow: none;
  --sans: Manrope, "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --display: Manrope, "PingFang SC", "Noto Sans SC", sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-synthesis: none; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 430;
  font-size: 13px;
  line-height: 1.45;
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
::selection { background: #d9e6f5; }

.skip {
  position: absolute;
  left: 0.6rem;
  top: -4rem;
  background: white;
  color: var(--ink);
  padding: 0.35rem 0.55rem;
  z-index: 10;
  border: 1px solid var(--line);
}
.skip:focus { top: 0.4rem; }

.site-header {
  background: #fff;
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  letter-spacing: -0.03em;
  font-size: 13px;
  white-space: nowrap;
}
.brand span { color: var(--ink-soft); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem; margin-left: auto; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 520;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.menu { display: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0.85rem 1rem 2.4rem; }
.hero { padding-top: 0.2rem; }
.hero-grid, .calc-grid, .split { display: grid; gap: 1rem; }
.hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.kicker {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-weight: 560;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h1 { font-size: 1.35rem; margin: 0 0 0.45rem; }
h2 { font-size: 1.02rem; margin: 1.35rem 0 0.4rem; }
h3 { font-size: 0.92rem; margin: 0.8rem 0 0.25rem; }
.lead { font-size: 13px; color: var(--ink-soft); max-width: 46rem; margin: 0 0 0.7rem; }
.plate {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem;
}
.plate svg { display: block; width: 100%; height: auto; }
.plate figcaption { color: var(--ink-soft); font-size: 11px; padding: 0.3rem 0.25rem 0.1rem; }

.stats, .grid-3, .grid-2, .card-grid, .kind-grid { display: grid; gap: 0.5rem; }
.kind-grid { grid-template-columns: 1fr 1fr; margin: 0.15rem 0 0.7rem; }
.kind-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem; align-items: end; }
.kind-forms { grid-template-columns: 1fr 1fr; max-width: 46rem; }
.kind-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.2rem 0.45rem 0.6rem;
}
.kind-card img, .card img.kind-fig { width: 100%; height: auto; display: block; }
.kind-card h3 { margin: 0.05rem 0 0; }
.kind-card p { margin: 0.2rem 0 0; color: var(--ink-soft); }
.kind-card:hover { border-color: var(--ink); }
.kind-actions { margin: 0.1rem 0 0.3rem; }
.kind-hero { max-width: 26rem; background: #fff; }
.kind-hero img { width: 100%; height: auto; display: block; }
.stats { grid-template-columns: repeat(4, 1fr); margin: 0.8rem 0 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stat, .card, .note, .calc-panel, .filterbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.stat { padding: 0.45rem 0.6rem; }
.stat b {
  display: block;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.03em;
}
.stat span, .muted { color: var(--ink-soft); font-size: 11.5px; }
.card { padding: 0.6rem 0.7rem 0.65rem; }
.card h3 { margin-top: 0; }
.card p { margin: 0.25rem 0 0; }
.card a.block { color: inherit; text-decoration: none; }
.card a.block:hover h3 { color: var(--link); }
.section-h { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.3rem; color: var(--ink-soft); font-size: 11.5px; margin: 0 0 0.55rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--link); }

.prose { padding: 0; }
.prose > * { max-width: 46rem; }
.prose table, .table-wrap table { max-width: none; }
.prose li { margin: 0.15rem 0; }
.prose p { margin: 0.45rem 0; }
.note, .warn {
  padding: 0.5rem 0.65rem;
  margin: 0.7rem 0;
  max-width: 46rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.warn { background: #fbf6f2; border-color: #eadfd6; }
.note strong, .warn strong { font-weight: 650; }

.badges { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.2rem 0 0.45rem; }
.badge {
  display: inline-block;
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  font-size: 11px;
  font-weight: 560;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.badge.mid, .badge.low, .badge.price { background: #fff; }

.sheet-head { min-height: 0; }
.sheet > .filterbar,
.sheet .filterbar { margin-bottom: 0; }
@media (min-width: 901px) {
  .sheet-head {
    min-height: 7.85rem;
    margin: 0;
  }
  .sheet-head .lead { margin-bottom: 0; }
  .sheet:not(:has(.filterbar)) > .sheet-head {
    min-height: calc(7.85rem + 4.55rem);
  }
  .sheet > .table-wrap,
  .sheet .table-wrap { margin-top: 0.45rem; }
  .sheet > .model-top { margin-top: 0.45rem; }
  .sheet .model-facts .table-wrap { margin-top: 0; }
}
.table-wrap {
  overflow-x: auto;
  margin: 0.45rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.32rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-soft);
  background: #f8f9fa;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f4f7fb; }
tr[hidden] { display: none; }
table.data { min-width: 760px; }
table.data td.clip { max-width: 16rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.data a { scroll-margin-top: 5rem; }

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  padding: 0.45rem 0.5rem;
  margin: 0.4rem 0 0.55rem;
  align-items: end;
  background: #fff;
}
.filterbar label { display: grid; gap: 0.15rem; font-size: 11px; font-weight: 560; color: var(--ink-soft); }
.filterbar input, .filterbar select, .calc-panel input, .calc-panel select {
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0.28rem 0.4rem;
  min-width: 0;
}
.filterbar input[type="search"] { min-width: 12rem; }

.calc-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); align-items: start; }
.calc-panel { padding: 0.6rem 0.7rem 0.75rem; }
.calc-out {
  position: sticky;
  top: 3.1rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.75rem 0.8rem;
}
.calc-out a { color: var(--link); }
.calc-out h2 { margin: 0.1rem 0 0.4rem; font-size: 0.95rem; }
.range-num {
  font-weight: 620;
  letter-spacing: -0.03em;
  font-size: 1.7rem;
  line-height: 1;
  margin: 0.15rem 0;
}
.range-num small { font-size: 0.85rem; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); }
.out-kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; margin: 0.55rem 0; }
.out-kvs div { background: var(--bg-soft); border-radius: 4px; padding: 0.3rem 0.4rem; }
.out-kvs b { display: block; font-size: 0.92rem; }
.out-kvs span { color: var(--ink-soft); font-size: 11px; }
.verdict { margin: 0.3rem 0 0.1rem; }
.bars { display: grid; gap: 0.2rem; margin: 0.45rem 0; }
.bar { display: grid; grid-template-columns: 6.4rem 1fr auto; gap: 0.35rem; align-items: center; font-size: 11.5px; color: var(--ink-soft); }
.bar i { display: block; height: 4px; background: #e8ebef; border-radius: 99px; position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--link); border-radius: 99px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0.45rem 0; padding: 0.45rem 0.55rem 0.55rem; }
legend { font-weight: 600; padding: 0 0.25rem; font-size: 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.55rem; }
.fields label, .stack { display: grid; gap: 0.12rem; font-size: 12px; font-weight: 560; }
.fields .wide { grid-column: 1 / -1; }
.hint { font-weight: 450; color: var(--ink-soft); font-size: 11.5px; }
.check { display: flex; gap: 0.4rem; align-items: center; font-weight: 520; }
.actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
button, .button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 580;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 0.32rem 0.6rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.ghost, .button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.calc-out .button { background: var(--ink); color: #fff; }
button:hover, .button:hover { background: #000; color: #fff; }
button.ghost:hover, .button.ghost:hover { background: var(--bg-soft); color: var(--ink); }
#error { color: var(--warn); min-height: 1.1em; }

.toc { margin: 0.35rem 0 0.8rem; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); }
.toc ol { margin: 0.2rem 0 0; padding-left: 1.1rem; }

.site-footer { background: #fff; color: var(--ink-soft); margin-top: 1.5rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--link); }
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.9rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.8rem;
  font-size: 12px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0.15rem 0; }
.foot strong { color: var(--ink); }
.colophon { grid-column: 1 / -1; color: var(--ink-soft); font-size: 11.5px; line-height: 1.45; max-width: 46rem; }

.local { font-family: "Noto Sans SC", "PingFang SC", var(--sans); }
.brand-line { margin: 0 0 0.25rem; font-weight: 580; font-size: 12.5px; }
.brand-line a { color: inherit; text-decoration: none; }
.brand-line a:hover { color: var(--link); }
.brand-ru { font-weight: 480; color: var(--ink-soft); letter-spacing: 0; }
h1 .brand-ru { font-size: 0.78em; }
.brand-ru::before { content: "· "; }
.model-top { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr); gap: 1rem; align-items: start; margin: 0.15rem 0 0.6rem; }
.model-top > * { min-width: 0; }
.model-facts .lead { margin-top: 0; }
.model-facts .table-wrap { margin-top: 0.35rem; }
.stage {
  margin: 0;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.45rem 0.35rem;
}
.stage-frame { position: relative; }
.stage-well {
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stage-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: inherit;
  line-height: 0;
  cursor: zoom-in;
}
.stage-open:hover { background: #fff; color: inherit; }
.stage-frame img[data-stage] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: min(480px, 50vw);
  object-fit: contain;
  background: #fff;
}
.stage-frame.is-poster .stage-well { max-height: min(70vh, 620px); overflow: auto; }
.stage-frame.is-poster img[data-stage] { height: auto; }
.stage-frame.is-banner img[data-stage] { height: auto; max-height: 220px; }
.shot-count {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.08rem 0.45rem;
  font-size: 11px;
  color: var(--ink-soft);
  pointer-events: none;
}
.stage-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-nav:hover { background: #fff; color: var(--ink); border-color: var(--ink-soft); }
.stage-nav.prev { left: 0.55rem; }
.stage-nav.next { right: 0.55rem; }
.stage-nav::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.stage-nav.prev::before { transform: translateX(1px) rotate(135deg); }
.stage-nav.next::before { transform: translateX(-1px) rotate(-45deg); }
@media (hover: hover) {
  .stage .stage-nav { opacity: 0; }
  .stage:hover .stage-nav, .stage .stage-nav:focus-visible { opacity: 1; }
}
.shots { display: flex; gap: 6px; overflow-x: auto; margin-top: 0.45rem; padding-bottom: 0.15rem; scrollbar-width: thin; }
.shots button {
  flex: 0 0 84px;
  width: 84px;
  height: 60px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.shots button img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.shots button.is-poster img, .shots button.is-banner img { object-fit: cover; object-position: center 18%; }
.shots button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shots button:hover { background: #fff; border-color: var(--ink-soft); }
.stage figcaption { margin: 0.35rem 0.15rem 0.1rem; color: var(--ink-soft); font-size: 11.5px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 3.4rem 1.4rem;
  background: #f6f7f8;
}
.lightbox[hidden] { display: none; }
.lightbox-well {
  max-width: min(1080px, 100%);
  max-height: 100%;
  overflow: auto;
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1080px, 100%);
  max-height: calc(100vh - 4.8rem);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.lightbox.is-poster { align-items: stretch; }
.lightbox.is-poster .lightbox-well { width: min(760px, 100%); height: 100%; }
.lightbox.is-poster img { width: 100%; max-height: none; }
.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 0.18rem 0.65rem;
  font-size: 12px;
}
.lightbox-close:hover { background: var(--bg-soft); color: var(--ink); }
.lightbox .stage-nav { opacity: 1; }
body.has-lightbox { overflow: hidden; }
th.shot, td.shot { width: 76px; padding: 0.22rem 0.35rem; vertical-align: middle; }
a.thumb-link { display: block; line-height: 0; }
img.thumb {
  width: 76px;
  height: 52px;
  object-fit: contain;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
}
img.thumb.is-placeholder { background: #fff; padding: 2px; }

.tech th[data-sort] { cursor: pointer; }
.tech th[aria-sort="ascending"]::after { content: " ↑"; }
.tech th[aria-sort="descending"]::after { content: " ↓"; }
.tech th { white-space: normal; line-height: 1.25; }
.tech td { white-space: nowrap; }
.tech td.wrap, .tech th.wrap { white-space: normal; }
tr.is-picked td { background: #eaf1f8; }
.pick-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin-top: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.pick-bar h2 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.pick-bar .card { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.pick-bar .card h3, .pick-bar a { color: var(--link); }
.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
.shown { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .pick-grid { grid-template-columns: 1fr; }
  .brand { font-size: 13px; }
  .hero-grid, .calc-grid, .stats, .grid-3, .grid-2, .foot, .model-top { grid-template-columns: 1fr; }
  .kind-grid { grid-template-columns: 1fr; }
  .stage-frame img[data-stage] { height: min(300px, 70vw); }
  .stage-frame.is-poster .stage-well { max-height: 68vh; }
  .lightbox { padding: 3rem 0.6rem 0.8rem; }
  .lightbox .stage-nav.prev { left: 0.35rem; }
  .lightbox .stage-nav.next { right: 0.35rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu { display: block; margin-left: auto; }
  .menu summary { color: var(--ink); cursor: pointer; font-weight: 600; font-size: 12.5px; }
  .menu[open] .nav, .menu .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0.6rem;
    top: 2.35rem;
    background: #fff;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-width: 11rem;
    box-shadow: 0 8px 24px rgba(20, 24, 30, 0.06);
  }
  .menu:not([open]) .nav { display: none; }
  .calc-out { position: static; order: -1; }
  .fields { grid-template-columns: 1fr; }
  .bar { position: relative; }
  .filterbar input[type="search"] { min-width: 0; width: 100%; }
  .filterbar label { flex: 1 1 8.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .site-footer, .filterbar, .actions { display: none; }
  body { background: white; }
  .calc-out { color: black; background: white; border: 1px solid #ccc; }
}
