:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --ink: #17191d;
  --muted: #5d636e;
  --line: #dcdad3;
  --accent: #b4541f;
  --accent-ink: #ffffff;
  --dark: #17191d;
  --ok: #1d6b3c;
  --err: #a12a22;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.86em; }
.pre { white-space: pre-line; }

.banner { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 8px 16px; font-size: 0.92rem; }
.banner a { color: inherit; font-weight: 600; margin-left: 8px; }

.top { background: var(--dark); color: #f4f3ef; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
.logo svg { width: 26px; height: 26px; color: #e58a4f; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; flex: 1; }
.nav a { text-decoration: none; opacity: 0.82; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current='page'] { opacity: 1; border-bottom-color: #e58a4f; }
.langs { display: flex; gap: 2px; font-family: var(--mono); font-size: 0.8rem; }
.langs a { text-decoration: none; padding: 3px 8px; border: 1px solid #3a3e46; }
.langs a[aria-current='true'] { background: #f4f3ef; color: var(--dark); border-color: #f4f3ef; }

.hero { background: var(--dark); color: #f4f3ef; padding: 56px 0 64px; border-top: 1px solid #2b2f36; }
.hero p { max-width: 58ch; color: #c5c8ce; font-size: 1.1rem; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #e58a4f; outline-offset: 2px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

section.block { padding: 44px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile, .card { background: var(--card); border: 1px solid var(--line); padding: 18px; text-decoration: none; display: block; }
.tile:hover, .card:hover { border-color: var(--ink); }
.tile .count { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.card .pic { aspect-ratio: 4 / 3; background: #ecebe6; margin: -18px -18px 14px; display: grid; place-items: center; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic svg { width: 44px; height: 44px; color: #b9b6ac; }
.card h3 { margin-bottom: 6px; }
.price { font-family: var(--mono); font-weight: 600; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.74rem; padding: 2px 6px; border: 1px solid var(--line); color: var(--muted); }
.tag.no { color: var(--err); border-color: currentColor; }

.shop { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
@media (max-width: 800px) { .shop { grid-template-columns: 1fr; } }
.side { background: var(--card); border: 1px solid var(--line); padding: 16px; }
.side h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 18px 0 8px; }
.side h3:first-child { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; text-decoration: none; }
.side li a[aria-current='true'] { font-weight: 700; color: var(--accent); }
.side ul ul { padding-left: 14px; }
.side label { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 0.95rem; }
.side .range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type='search'] { flex: 1; min-width: 180px; }

input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #b9b6ac; padding: 9px 10px; border-radius: 2px; width: 100%; }
input[type='checkbox'] { width: auto; }
textarea { min-height: 110px; resize: vertical; }
form.f { display: grid; gap: 12px; max-width: 560px; }
form.f label { display: grid; gap: 4px; font-size: 0.92rem; }
form.f label.check { display: flex; gap: 8px; align-items: flex-start; }
.hp { position: absolute; left: -9999px; }
.ok { color: var(--ok); font-weight: 600; }
.err { color: var(--err); font-weight: 600; }

.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; } }
.gallery { background: var(--card); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.gallery svg { width: 72px; height: 72px; color: #b9b6ac; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.94rem; margin: 12px 0 20px; }
table.spec th, table.spec td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-weight: 400; color: var(--muted); width: 45%; }
table.spec td { font-family: var(--mono); font-size: 0.9em; }
.panel { background: var(--card); border: 1px solid var(--line); padding: 22px; margin-top: 28px; }
.faq details { background: var(--card); border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.prose { max-width: 70ch; }
.pager { display: flex; gap: 8px; margin-top: 20px; align-items: center; }

footer.foot { background: var(--dark); color: #c5c8ce; padding: 32px 0; margin-top: 48px; font-size: 0.92rem; }
footer.foot .wrap { display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; }
footer.foot a { color: #f4f3ef; text-decoration: none; margin-right: 16px; }
footer.foot a:hover { text-decoration: underline; }
.test-note { font-family: var(--mono); font-size: 0.78rem; opacity: 0.7; }
