:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d2;
  --ink: #1a1714;
  --muted: #5c564c;
  --line: #d5ccbc;
  --bronze: #8c6234;
  --white: #fbf8f3;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a, a:link, a:visited { color: inherit; }
.phone { white-space: nowrap; }
.addr { white-space: pre-line; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); margin: 0 0 16px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 16px; }
p { margin: 0 0 12px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.sr, .hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--white); padding: 8px 12px; }
.skip:focus { top: 12px; }
.kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin: 0 0 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 42rem; }
.btn, .btn:link, .btn:visited, button.btn { display: inline-block; background: var(--ink); color: var(--white); text-decoration: none; border: 0; padding: 12px 18px; font: inherit; line-height: 1; cursor: pointer; }
.btn-ghost, .btn-ghost:link, .btn-ghost:visited { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-small:link, .btn-small:visited, .btn-small { padding: 8px 12px; font-size: 14px; }
.text-link { color: var(--bronze); text-decoration: none; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; padding-bottom: 2px; border-bottom: 1px solid var(--bronze); transition: color .15s linear, border-color .15s linear; }
.text-link:hover, .text-link:focus-visible { color: var(--ink); border-color: var(--ink); }
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(243,239,230,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.preview-bar { background: #1c1916; color: #f4f0e8; font-size: 14px; }
.preview-bar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 42px; }
.preview-bar p { margin: 0; }
.preview-bar a { color: #f4f0e8; text-decoration: underline; }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.04em; }
.brand-name span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }
.desk-nav { display: flex; gap: 14px; flex: 1; min-width: 0; }
.desk-nav a { color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.desk-nav a:hover { color: var(--bronze); }
.desk-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--bronze); }
.head-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.search-bar input, form input, form textarea, form select { width: 100%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; padding: 10px 12px; }
.head-search-slot { position: relative; width: 36px; height: 36px; flex: 0 0 auto; }
.head-search { position: relative; width: 36px; height: 36px; }
.head-search:focus-within, .head-search:has(input:not(:placeholder-shown)) { position: absolute; z-index: 5; top: 0; right: 0; width: 260px; }
.head-search input { width: 100%; height: 36px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: inherit; font-size: 14px; padding: 0 10px 0 34px; }
.head-search:not(:focus-within):not(:has(input:not(:placeholder-shown))) input,
.head-search:not(:focus-within):not(:has(input:not(:placeholder-shown))) input::placeholder { color: transparent; }
.head-search input:focus { outline: 1px solid var(--bronze); outline-offset: -1px; }
.search-icon { position: absolute; z-index: 1; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.langs { display: flex; height: 36px; border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.08em; }
.langs a { display: grid; place-items: center; min-width: 36px; padding: 0 8px; text-decoration: none; }
.langs a + a { border-left: 1px solid var(--line); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--white); }
.head-quote:link, .head-quote:visited, .head-quote { display: inline-block; height: 36px; line-height: 36px; margin-left: 4px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; justify-content: center; height: 36px; background: transparent; border: 1px solid var(--ink); padding: 0 12px; font: inherit; font-size: 14px; line-height: 1; color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none; border-radius: 0; }
.drawer { background: var(--ink); color: var(--white); }
.drawer:not([hidden]) { position: fixed; z-index: 40; inset: 0; overflow: auto; }
html.nav-open, body.nav-open { overflow: hidden; }
.drawer-inner { padding: 16px 0 28px; }
.drawer-bar { display: flex; justify-content: flex-end; }
.drawer .nav-toggle { color: var(--white); border-color: rgba(255,255,255,.4); }
.drawer-search { margin: 8px 0 14px; }
.drawer-search input { height: 44px; font-size: 16px; background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.drawer-search input::placeholder { color: rgba(244,240,232,.62); }
.drawer a, .drawer a:link, .drawer a:visited { display: block; color: var(--white); text-decoration: none; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 22px; font-family: var(--serif); }
.drawer a.drawer-quote { display: block; text-align: center; margin-bottom: 8px; background: var(--white); color: var(--ink); border-bottom: 0; font-family: var(--sans); font-size: 16px; padding: 12px 18px; }
.flash { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); }
.flash-err { border-color: #8a3b32; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 20px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); }
.hero { padding: 48px 0 24px; }
.hero-grid, .split, .contact-grid, .catalog, .product { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; }
.catalog { display: block; }
.product { align-items: start; padding-bottom: 24px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stats dt { font-family: var(--serif); font-size: 28px; }
.stats dd { margin: 0; color: var(--muted); font-size: 14px; }
.rail-board { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rail-board a { min-height: 110px; position: relative; display: flex; align-items: flex-end; padding: 10px; text-decoration: none; color: var(--ink); }
.rail-board img, .swatch img, .card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.rail-board span, .swatch em { position: relative; background: rgba(251,248,243,.88); padding: 2px 6px; font-size: 13px; }
.rail-note, .empty { color: var(--muted); }
.band { padding: 56px 0; border-top: 1px solid var(--line); }
.band-plain { background: transparent; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.cat-row, .cards, .notes { display: grid; gap: 16px; }
.cat-row { grid-template-columns: repeat(4, 1fr); }
.cards { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 901px) {
  .home-cards:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }
}
.notes { grid-template-columns: repeat(3, 1fr); }
.cat, .notes a, .card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--white); border: 1px solid var(--line); padding: 16px; min-height: 140px; }
.cat, .notes a { position: relative; transition: border-color .15s linear; }
.cat::before, .notes a::before { content: ""; position: absolute; z-index: 1; top: 0; right: 0; width: 22px; height: 22px; background: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 100%); pointer-events: none; }
.cat::after, .notes a::after { content: ""; position: absolute; z-index: 2; top: 0; left: calc(100% - 22px); width: 31px; height: 1px; background: var(--line); transform-origin: left center; transform: rotate(45deg); pointer-events: none; }
.cat:hover, .notes a:hover, .cat:focus-visible, .notes a:focus-visible { border-color: var(--bronze); }
.cat:hover::after, .notes a:hover::after, .cat:focus-visible::after, .notes a:focus-visible::after { background: var(--bronze); }
.card { padding: 0; overflow: hidden; }
.card.static { padding: 0; }
.swatch { display: block; aspect-ratio: 4/3; position: relative; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.card-body span, .notes a span:not(.kicker) { color: var(--muted); font-size: 15px; }
.notes a .kicker { color: var(--bronze); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 12px 0 12px 42px; position: relative; border-top: 1px solid var(--line); }
.steps li:before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; color: var(--bronze); font-size: 13px; letter-spacing: 0.08em; }
.steps strong { display: block; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 22px; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 20px; line-height: 1; color: var(--bronze); flex-shrink: 0; transition: transform .2s linear; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--bronze); }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 62ch; line-height: 1.7; }
.cta { background: var(--ink); color: var(--white); padding: 64px 0; }
.cta .btn { background: var(--white); color: var(--ink); }
main:not(:has(.hero)) { padding-bottom: 80px; }
.site-foot { background: #141210; color: #e7e0d2; padding: 48px 0 20px; }
.site-foot a { color: #e7e0d2; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 6px 0; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: 14px; color: #b7ad9e; }
.page-head { padding: 0 0 12px; }
.page-head h1, .article h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.form, .side { display: grid; gap: 12px; }
.filters { margin: 0 0 20px; }
.filter-toggle { display: none; }
.filters h2 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin: 0 0 8px; }
.filter-links { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; }
.filter-links a { text-decoration: none; display: inline-block; padding: 4px 10px; border: 1px solid var(--line); background: var(--white); font-size: 14px; line-height: 1.4; }
.filter-links a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.filters form label { display: grid; gap: 4px; flex: 1 1 180px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.filters form select { height: 36px; padding: 0 8px; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.filter-actions { display: flex; align-items: center; gap: 12px; height: 36px; }
.filters .btn { height: 36px; padding: 0 16px; font-size: 14px; }
.prose { max-width: 46rem; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.product-visual { min-height: 360px; position: relative; }
.product-visual img, .cover { width: 100%; }
.sku { letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; color: var(--bronze); }
.spec { display: grid; gap: 10px; margin: 18px 0; }
.spec div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px auto 28px; }
.inquiry-box, .article { padding-bottom: 36px; }
.contact-grid { padding-bottom: 48px; align-items: start; }
.search-bar { display: flex; gap: 8px; max-width: 640px; }
.search-bar input { flex: 1; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 16px 0; }
.pager { display: flex; gap: 8px; margin: 24px 0; }
.pager a, .pager span { border: 1px solid var(--line); padding: 6px 10px; text-decoration: none; background: var(--white); }
.pager span { background: var(--ink); color: var(--white); }
@media (max-width: 1100px) {
  html[lang="ru"] .desk-nav, html[lang="ru"] .head-quote { display: none; }
  html[lang="ru"] .nav-toggle { display: inline-flex; }
  .head-tools { position: relative; }
  .head-search-slot { position: static; }
  .head-search:focus-within, .head-search:has(input:not(:placeholder-shown)) { position: absolute; z-index: 5; top: 0; right: 0; left: auto; width: max(100%, 260px); height: 36px; }
  .head-search:focus-within input, .head-search:has(input:not(:placeholder-shown)) input { position: static; width: 100%; padding-left: 34px; box-shadow: none; }
}
@media (max-width: 900px) {
  .desk-nav, .head-quote { display: none !important; }
  .nav-toggle { display: inline-flex; }
  .section-head { flex-wrap: wrap; gap: 8px; }
  .head-search-slot { position: relative; }
  .head-search, .head-search:focus-within, .head-search:has(input:not(:placeholder-shown)) { position: relative; top: auto; right: auto; left: auto; width: 36px; height: 36px; }
  .head-search input, .head-search:focus-within input, .head-search:has(input:not(:placeholder-shown)) input { position: absolute; top: 0; right: auto; left: 0; width: 100%; padding-left: 34px; box-shadow: none; }
  .hero-grid, .split, .contact-grid, .catalog, .product, .cat-row, .cards, .notes, .foot-grid, .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .filters form label { flex-basis: calc(50% - 12px); }
  .filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--ink); background: var(--white); font: inherit; font-size: 15px; cursor: pointer; }
  .filter-toggle::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; }
  .filters.is-open .filter-toggle { margin-bottom: 12px; }
  .filters.is-open .filter-toggle::after { transform: rotate(-135deg); margin-top: 4px; }
  .filters:not(.is-open) .filter-panel { display: none; }
  .filters h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
