/* =========================================================
   OHMA — editorial B2B style
   White page, black type set tight, mono uppercase for
   navigation, buttons and tags. Rounded media panels.
   Brand colours from the logo: lime (#D7EE4F) for the big
   panels, violet (#5553E6) as the accent.
   ========================================================= */
:root {
  --white: #ffffff;
  --paper: #ffffff;
  --sheet: #f0f0ef;
  --sheet-2: #e7e7e5;
  --black: #000000;
  --ink: #000000;
  --graphite: #111111;
  --steel: #5f5f5c;
  --steel-2: #8c8c88;
  --rule: #e2e2df;
  --rule-2: #cfcfcb;
  --lime: #d7ee4f;
  --lime-2: #e9f87e;
  --violet: #5553e6;
  --violet-d: #3f3dc4;
  --violet-50: #ececfc;
  --lilac: #e7d8ee;
  --coral: #fd8a65;
  --hv: #d9a21b;
  --ink-2: var(--steel); --ink-3: var(--steel-2); --bg: var(--white); --line: var(--rule); --line-2: var(--rule-2); --lime-d: #c3dc33;
  --r-sm: 6px; --r: 12px; --r-lg: 16px; --radius: 12px; --pill: 999px;
  --max: 1440px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--white); color: var(--black); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 500; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.035em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
p { color: var(--steel); text-wrap: pretty; }
em { font-style: normal; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.muted { color: var(--steel-2); }

/* mono uppercase micro-type: nav, buttons, tags */
.btn, .chip, .nav > .nav-item > a, .lang button, .crumbs, .page-tools, .tabs button, .seg button, .hero-switch button,
.dl .ext, .photo-tag, .fx-seg button, .side h4, .footer h5, .footer-bottom, .mobile-menu .mm-title, kbd { font-family: var(--mono); text-transform: uppercase; letter-spacing: .02em; }

/* ---------- buttons: pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 500; font-size: 13.5px; line-height: 1.1; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn-primary, .btn-dark { background: var(--black); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--violet); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--black); color: #fff; }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { background: var(--lime); }
.btn-ghost { background: var(--sheet); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 12.5px; }
.btn svg { width: 16px; height: 16px; }
.btn .arr { display: none; }

/* chips / tags */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: 4px; background: var(--sheet); color: var(--black); border: 0; white-space: nowrap; }
.chip b { font-weight: 500; }
.chip-dark { background: var(--black); color: #fff; cursor: pointer; }
.chip-dark:hover { background: var(--violet); }
.chip-glass { background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- top bar folded into the header ---------- */
.topbar { display: none; }
.lang { display: flex; gap: 0; }
.lang button { background: none; border: 0; color: var(--steel-2); font-weight: 500; font-size: 12px; padding: 6px 6px; cursor: pointer; border-radius: 4px; }
.lang button:hover { color: var(--black); }
.lang button.active { color: var(--black); background: #fff; }

/* ---------- header: big logo left, pill on the right ---------- */
.header { position: sticky; top: 0; z-index: 50; background: transparent; pointer-events: none; transition: transform .4s var(--ease); }
body.hdr-hide .header { transform: translateY(-110%); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; max-width: none; padding: 0 32px; }
.header > .container > * { pointer-events: auto; }
.logo { flex-shrink: 0; display: block; }
.logo img { height: 40px; width: auto; aspect-ratio: 990 / 270; transition: height .3s var(--ease); }
body.scrolled .logo img { height: 32px; }
.hdr-pill { display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px; border-radius: var(--pill); background: rgba(240, 240, 239, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav { display: flex; gap: 0; align-items: center; min-width: 0; }
.nav > .nav-item { position: relative; }
.nav > .nav-item > a { display: flex; align-items: center; gap: 4px; padding: 10px 10px; font-weight: 500; font-size: 12.5px; color: var(--black); white-space: nowrap; border-radius: var(--pill); }
.nav > .nav-item > a:hover, .nav > .nav-item > a.active { background: #fff; }
.nav .caret { width: 8px; height: 8px; opacity: .5; }
.dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px; background: #fff; border-radius: var(--r); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .04); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, visibility .15s, transform .2s var(--ease); }
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
body.hdr-hide .header .dropdown { visibility: hidden; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 15px; color: var(--black); }
.dropdown a:hover { background: var(--sheet); }
.dropdown .dd-sep { height: 1px; background: var(--rule); margin: 6px 12px; }
.dropdown.wide { min-width: 640px; }
.dd-grid { display: grid; grid-template-columns: 1fr 230px; gap: 8px; }
.dd-preview { background: var(--lime); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; justify-content: center; min-height: 230px; }
.dd-preview svg { width: 100%; height: 175px; }
.dd-preview span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; text-align: center; margin-top: 8px; }
.header-cta { display: flex; gap: 4px; align-items: center; }
.header-cta .lang { margin: 0 4px; }
.search-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--black); }
.search-btn:hover { background: #fff; }
.search-btn svg { width: 17px; height: 17px; }
.burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--black); cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 14px; height: 1.5px; background: #fff; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.mobile-menu { display: none; }
@media (max-width: 1360px) { .nav > .nav-item > a { padding: 10px 8px; font-size: 12px; } .nav .caret { display: none; } }
@media (max-width: 1200px) {
  .nav, .header-cta .lang { display: none; }
  .burger { display: grid; }
  .hdr-pill { padding: 5px; }
  .mobile-menu { position: fixed; inset: 84px 12px auto 12px; max-height: calc(100vh - 96px); z-index: 49; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .3); overflow: auto; padding: 8px 20px 24px; }
  body.menu-open .mobile-menu { display: block; }
  .mobile-menu a { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
  .mobile-menu .mm-title { font-size: 11.5px; color: var(--steel-2); padding: 20px 0 4px; }
  .mobile-menu .btn { width: 100%; margin-top: 12px; }
}
@media (max-width: 640px) { .header .container { height: 68px; padding: 0 12px 0 16px; } .logo img { height: 30px; } .header-cta .btn { display: none; } .mobile-menu { top: 68px; } }

/* ---------- page head ---------- */
.page-head { padding: 32px 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11.5px; color: var(--steel-2); margin-bottom: 20px; }
.crumbs a:hover { color: var(--black); }
.crumbs span::before { content: "/"; margin-right: 8px; }
.page-tools { display: flex; gap: 6px; font-size: 11.5px; margin-top: 16px; }
.page-tools a, .page-tools button { color: var(--black); background: var(--sheet); border: 0; cursor: pointer; padding: 7px 10px; border-radius: 4px; }
.page-tools a:hover, .page-tools button:hover { background: var(--black); color: #fff; }

/* ---------- layout: sidebar + content ---------- */
.with-side { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; padding: 16px 0 96px; }
.with-side > * { min-width: 0; }
.with-side h1 { font-size: clamp(34px, 4vw, 60px); }
.side { position: sticky; top: 100px; background: var(--sheet); border-radius: var(--r); padding: 12px; }
.side h4 { font-size: 11px; font-weight: 500; color: var(--steel-2); padding: 14px 10px 6px; }
.side h4:first-child { padding-top: 4px; }
.side a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; color: var(--black); line-height: 1.3; }
.side a:hover { background: #fff; }
.side a.active { background: var(--black); color: #fff; }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; gap: 24px; } .side { position: static; } }

.panel { background: var(--sheet); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); }
.panel + .panel { margin-top: 16px; }

/* ---------- hero ---------- */
.hero { padding: 24px 0 0; }
.hero-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: end; padding: 40px 0; }
.hero h1 { max-width: 14ch; }
.hero h1 em { color: inherit; }
.hero .lead { font-size: 19px; color: var(--black); max-width: 36ch; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tag { display: none; }
@media (max-width: 960px) { .hero-top { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 28px; } }

/* the lime drawing panel — the signature element */
.blueprint { position: relative; height: min(78vh, 760px); min-height: 460px; border-radius: var(--r-lg); overflow: hidden; background: var(--lime);
  background-image: linear-gradient(rgba(0, 0, 0, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .055) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center; }
.blueprint svg { width: 100%; height: 100%; }
.blueprint .bp-label { position: absolute; top: 20px; left: 20px; z-index: 2; }
.blueprint .bp-tr { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; gap: 6px; }
.blueprint .bp-stage { position: absolute; inset: 64px 24px 76px; }
.blueprint .bp-stage svg { width: 100%; height: 100%; }
.blueprint .bp-cross { display: none; }
.hero-switch { position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.hero-switch button { position: relative; overflow: hidden; border: 0; background: rgba(255, 255, 255, .7); padding: 8px 11px; border-radius: 4px; font-size: 11.5px; font-weight: 500; color: var(--black); cursor: pointer; }
.hero-switch button:hover { background: #fff; }
.hero-switch button.active { background: var(--black); color: #fff; }
.hero-switch button.active::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--lime); animation: prog var(--hold, 6s) linear forwards; }
.blueprint:hover .hero-switch button.active::after { animation-play-state: paused; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
@media (max-width: 640px) { .blueprint { height: 72vh; min-height: 420px; } .blueprint .bp-stage { inset: 96px 8px 92px; } .blueprint .bp-tr { top: 56px; left: 20px; right: auto; } }

/* ---------- statement ---------- */
.statement { padding-top: 96px; }
.st-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.st-text { font-size: clamp(24px, 2.5vw, 36px); line-height: 1.18; letter-spacing: -0.03em; color: var(--black); max-width: 30ch; font-weight: 400; }
@media (max-width: 860px) { .st-row { flex-direction: column; gap: 24px; } }

/* ---------- sections ---------- */
.section { padding: 112px 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--rule); }
.section-head > div { max-width: 720px; }
.section-head p { margin-top: 12px; font-size: 17px; }

/* products — a work grid: media, title, line, tags */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 16px; }
.series-card { display: flex; flex-direction: column; color: var(--black); }
.series-card.big { grid-column: span 2; grid-row: span 2; }
.series-card.big .sc-media { flex: 1; min-height: 0; aspect-ratio: auto; }
.sc-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--sheet); margin-bottom: 16px; }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.series-card:hover .sc-media img { transform: scale(1.03); }
.sc-media.is-draw { background: var(--lime); display: grid; place-items: center; }
.sc-media .sc-draw { width: 70%; height: 80%; }
.sc-media .sc-draw svg { width: 100%; height: 100%; }
.sc-media .chip { position: absolute; top: 12px; left: 12px; }
.drawing.plain .dim, .drawing.plain .stamp { display: none; }
.series-card h3 { font-size: 22px; }
.series-card .sc-desc { font-size: 15px; margin: 4px 0 12px; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.series-card:hover h3 { color: var(--violet); }
@media (max-width: 960px) { .series-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .series-card.big { grid-row: auto; } .series-card.big .sc-media { flex: none; aspect-ratio: 16 / 10; } }
@media (max-width: 600px) { .series-grid { grid-template-columns: 1fr; gap: 36px; } .series-card.big { grid-column: auto; } .series-card.big .sc-media { aspect-ratio: 4 / 3; } }

/* customer tools — grey cards */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool { background: var(--sheet); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 240px; cursor: pointer; text-align: left; transition: background .25s; }
.tool:hover { background: var(--lime); }
.tool .ti { color: var(--black); margin-bottom: auto; padding-bottom: 32px; }
.tool .ti svg { width: 28px; height: 28px; stroke-width: 1.5; }
.tool h3 { font-size: 20px; }
.tool p { font-size: 15px; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } .tool { min-height: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.stat { background: var(--sheet); border-radius: var(--r); padding: 24px; }
.stat b { display: block; font-size: clamp(36px, 3.6vw, 56px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; color: var(--black); }
.stat span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--steel); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- series page ---------- */
.model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; margin: 24px 0; }
.model-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 8px; background: #fff; font-weight: 500; font-size: 15px; }
.model-list a:hover { background: var(--black); color: #fff; }
.series-top { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.series-top > * { min-width: 0; }
.series-top .mini-draw { background: var(--lime); border-radius: var(--r); padding: 10px; aspect-ratio: 1; overflow: hidden; }
.series-top .mini-draw svg { width: 100%; height: 100%; }
#series-media { position: relative; }
#series-media img { border-radius: 8px; }
@media (max-width: 800px) { .series-top { grid-template-columns: 1fr; } .series-top .mini-draw { max-width: 340px; } }

.tabs { position: relative; display: flex; gap: 6px; margin: 40px 0 0; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: var(--sheet); border: 0; padding: 10px 14px; border-radius: var(--pill); font-weight: 500; font-size: 12.5px; color: var(--black); cursor: pointer; white-space: nowrap; }
.tabs button:hover { background: var(--sheet-2); }
.tabs button.active { background: var(--black); color: #fff; }
.tab-ink { display: none; }
.tab-pane { display: none; padding-top: 24px; }
.tab-pane.active { display: block; }
.tab-pane p + p { margin-top: 12px; }
.tab-pane h3 { margin: 24px 0 10px; }

/* data tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); background: #fff; border: 1px solid var(--rule); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.data thead th { background: var(--sheet); color: var(--black); font-family: var(--mono); text-transform: uppercase; font-weight: 500; font-size: 11px; letter-spacing: .02em; white-space: normal; vertical-align: bottom; min-width: 90px; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #fafaf9; }
table.data td:first-child { text-align: left; font-weight: 500; }
table.data td:first-child a { color: var(--black); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
table.data td:first-child a:hover { color: var(--violet); }
table.data tr.current td { background: var(--lime-2) !important; }
table.data td:first-child, table.data th:first-child { position: sticky; left: 0; z-index: 1; }
table.data td:first-child { background: #fff; }
table.data thead th:first-child { background: var(--sheet); }
.note { font-size: 13px; color: var(--steel-2); margin-top: 10px; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.product > * { min-width: 0; }
@media (max-width: 1000px) { .product { grid-template-columns: 1fr; } }
.gallery .main { position: relative; background: var(--lime); border-radius: var(--r-lg); padding: 24px; cursor: zoom-in; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery .main svg { width: 100%; height: 100%; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.gallery .main:has(img) { background: var(--sheet); }
.gallery .main .zoom-hint { position: absolute; right: 14px; bottom: 14px; font-family: var(--mono); text-transform: uppercase; font-size: 11px; background: #fff; padding: 6px 9px; border-radius: 4px; opacity: 0; transition: opacity .2s; }
.gallery .main:hover .zoom-hint { opacity: 1; }
.gallery .thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.gallery .thumbs button { width: 76px; height: 76px; border: 0; border-radius: 8px; background: var(--sheet); padding: 6px; cursor: pointer; outline: 2px solid transparent; }
.gallery .thumbs button.active { outline-color: var(--black); }
.gallery .thumbs svg, .gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gallery .cap { font-family: var(--mono); text-transform: uppercase; font-size: 11px; color: var(--steel-2); margin-top: 10px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.spec td { padding: 11px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; color: var(--steel); }
table.spec td:last-child { text-align: right; font-weight: 500; padding-left: 16px; color: var(--black); }
table.spec tr.grp td { border-bottom: 0; padding-top: 26px; font-family: var(--mono); text-transform: uppercase; font-size: 11.5px; font-weight: 500; color: var(--black); text-align: left; }
.dl-list { display: grid; gap: 6px; margin-top: 16px; }
.dl { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: var(--r); background: var(--sheet); font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; width: 100%; transition: background .2s; }
.dl:hover { background: var(--lime); }
.dl .ext { font-size: 10.5px; font-weight: 500; padding: 4px 6px; border-radius: 4px; background: var(--black); color: #fff; flex-shrink: 0; }
.dl svg { width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; }
.panel .dl { background: #fff; }
.panel .dl:hover { background: var(--lime); }
.cta-box { margin-top: 12px; padding: 28px; border-radius: var(--r-lg); background: var(--black); color: #fff; }
.cta-box h3 { color: #fff; font-size: 24px; }
.cta-box p { color: #a7a7a3; font-size: 15px; margin: 8px 0 18px; }
.cta-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-box .btn-lime { background: var(--lime); color: #000; }
.cta-box .btn-lime:hover { background: #fff; }
.cta-box .btn-ghost { background: #222; color: #fff; }
.cta-box .btn-ghost:hover { background: #fff; color: #000; }
.photo-tag { position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 500; background: #fff; color: var(--black); padding: 6px 9px; border-radius: 4px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pn a, .pn span { display: flex; flex-direction: column; padding: 18px 20px; border-radius: var(--r); background: var(--sheet); }
.pn span { background: none; }
.pn a.next { text-align: right; }
.pn a small { font-family: var(--mono); text-transform: uppercase; font-size: 11px; color: var(--steel-2); }
.pn a b { font-weight: 500; font-size: 18px; margin-top: 4px; }
.pn a:hover { background: var(--lime); }

/* lightbox (drawings) */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .8); display: none; place-items: center; padding: 16px; }
.lightbox.open { display: grid; }
.lightbox .lb-inner { background: var(--lime); border-radius: var(--r-lg); width: min(1100px, 100%); height: min(88vh, 900px); padding: 24px; position: relative; overflow: hidden; }
.lightbox .lb-inner svg { width: 100%; height: 100%; }
.lightbox .lb-body { overflow: hidden; touch-action: none; }
.lightbox .lb-body svg { transition: transform .15s ease-out; transform-origin: center; cursor: grab; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #000; color: #fff; font-size: 22px; cursor: pointer; z-index: 2; }
.lb-ctr { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 2px; align-items: center; background: #000; color: #fff; border-radius: var(--pill); padding: 4px; }
.lb-ctr button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; }
.lb-ctr button:hover { background: rgba(255, 255, 255, .15); }
.lb-name { font-family: var(--mono); text-transform: uppercase; font-size: 11px; padding: 0 10px; white-space: nowrap; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-family: var(--mono); text-transform: uppercase; font-size: 11px; font-weight: 500; color: var(--black); }
.input, .select, .textarea { width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--sheet); outline: none; font-size: 16px; transition: background .15s, border-color .15s; }
.input:hover, .select:hover, .textarea:hover { background: var(--sheet-2); }
.input:focus, .select:focus, .textarea:focus { background: #fff; border-color: var(--black); }
.panel .input, .panel .select, .panel .textarea { background: #fff; }
.textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row > * { min-width: 0; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.file-drop { display: block; border: 1px dashed var(--rule-2); border-radius: var(--r); padding: 24px; text-align: center; cursor: pointer; color: var(--steel); font-size: 15px; background: #fff; }
.file-drop:hover, .file-drop.drag { border-color: var(--black); background: var(--lime-2); }
.file-drop input { display: none; }
.file-drop b { color: var(--black); font-weight: 500; }
.form-status { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.form-status.ok { display: block; background: var(--lime-2); color: #000; }
.form-status.err { display: block; background: #fde3dc; color: #8a2412; }
.consent { font-size: 12.5px; color: var(--steel-2); margin-top: 10px; }
.hp { position: absolute; left: -9999px; }

.modal { position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .45); display: none; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.modal.open { display: grid; }
.modal .panel { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; position: relative; background: #fff; border-radius: var(--r-lg); }
.modal .panel .input, .modal .panel .select, .modal .panel .textarea { background: var(--sheet); }
.modal .panel .input:focus, .modal .panel .textarea:focus { background: #fff; }
.modal h3 { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 8px; padding-right: 44px; }
.modal .sub { font-size: 15px; margin-bottom: 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sheet); font-size: 20px; cursor: pointer; }
.modal-close:hover { background: #000; color: #fff; }

/* ---------- configurator ---------- */
.cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfg > * { min-width: 0; }
@media (max-width: 900px) { .cfg { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 9px 14px; border-radius: var(--pill); border: 0; background: #fff; cursor: pointer; font-weight: 500; font-size: 12.5px; color: var(--black); }
.seg button:hover { background: var(--sheet-2); }
.seg button.active { background: var(--black); color: #fff; }
.range { width: 100%; accent-color: #000; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-val { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; }
.cfg-result .rec { font-family: var(--mono); text-transform: uppercase; font-size: 11px; background: var(--lime); padding: 6px 9px; border-radius: 4px; display: inline-block; }
.cfg-result .model { font-size: 32px; font-weight: 500; margin: 12px 0 4px; letter-spacing: -0.03em; }
.cfg-result .draw { background: var(--lime); border-radius: var(--r); padding: 10px; margin: 16px 0; height: 300px; }
.cfg-result .draw svg { width: 100%; height: 100%; }
.cfg-result .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- downloads ---------- */
.dl-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl-groups > * { min-width: 0; }
@media (max-width: 800px) { .dl-groups { grid-template-columns: 1fr; } }

/* ---------- projects / contacts ---------- */
.map-box { height: 520px; border-radius: var(--r-lg); overflow: hidden; background: var(--sheet); }
.map-box .leaflet-tile-pane { filter: grayscale(1) contrast(.95) brightness(1.05); }
#map, #cmap { width: 100%; height: 100%; }
.ohma-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--violet); border: 3px solid #fff; box-shadow: 0 0 0 1px #000; }
table.data tr[data-fly] { cursor: pointer; }
table.data tr.fly-on td { background: var(--lime-2) !important; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.c-list { display: grid; gap: 6px; }
.c-item { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--sheet); }
.c-item .ic { color: var(--black); flex-shrink: 0; padding-top: 2px; }
.c-item .ic svg { width: 20px; height: 20px; }
.c-item span { display: block; font-family: var(--mono); text-transform: uppercase; font-size: 11px; color: var(--steel-2); }
.c-item b { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- about ---------- */
.tl { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule-2); }
.tl b { font-size: 22px; font-weight: 500; }
.tl h3 { font-weight: 400; }

/* ---------- footer ---------- */
.footer { background: #000; color: #a7a7a3; padding: 32px 0 24px; overflow: hidden; }
.footer .container { max-width: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 32px; border-top: 1px solid #262626; }
.footer h5 { font-size: 11.5px; font-weight: 500; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer .f-about { color: #a7a7a3; font-size: 15px; max-width: 34ch; }
.footer .f-phone { margin-top: 16px; font-size: 24px; letter-spacing: -0.02em; color: #fff; }
.f-mark { margin-top: 72px; }
.f-mark img { width: 100%; height: auto; }
.footer-bottom { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; flex-wrap: wrap; color: #7a7a76; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- search ---------- */
.search-modal { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .4); backdrop-filter: blur(4px); display: none; padding: 12vh 16px 16px; }
.search-modal.open { display: block; }
.search-box { max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.search-in { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.search-in svg { width: 20px; height: 20px; flex-shrink: 0; }
.search-in input { flex: 1; border: 0; outline: none; font-size: 20px; min-width: 0; background: none; letter-spacing: -0.01em; }
kbd { font-size: 10.5px; background: var(--sheet); border-radius: 4px; padding: 3px 6px; color: var(--steel); }
.search-res { max-height: 56vh; overflow: auto; padding: 8px; }
.search-res a { display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 10px; }
.search-res a.sel, .search-res a:hover { background: var(--sheet); }
.search-res .sr-ico { width: 46px; height: 46px; background: var(--lime); border-radius: 8px; padding: 4px; flex-shrink: 0; }
.search-res .sr-ico svg { width: 100%; height: 100%; }
.search-res b { display: block; font-size: 15.5px; font-weight: 500; }
.search-res small { font-size: 13px; color: var(--steel-2); }
.search-res em { margin-left: auto; font-family: var(--mono); text-transform: uppercase; font-size: 10.5px; color: var(--steel-2); }
.search-empty { padding: 24px; text-align: center; color: var(--steel-2); }
.search-hint { font-family: var(--mono); font-size: 11px; color: var(--steel-2); padding: 12px 20px; border-top: 1px solid var(--rule); }

/* ---------- small UI ---------- */
.scroll-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 8px; }
.toast { padding: 14px 18px; border-radius: var(--r); background: #000; color: #fff; font-size: 14.5px; max-width: 360px; }
.toast.err { background: #8a2412; }
.toast.out { opacity: 0; transition: opacity .3s; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #000; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s, background .2s; }
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--violet); }
.recent { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.recent a { flex: 0 0 210px; scroll-snap-align: start; background: var(--sheet); border-radius: var(--r); padding: 14px; }
.recent a:hover { background: var(--lime); }
.recent a .ri { height: 120px; margin-bottom: 10px; }
.recent a .ri svg { width: 100%; height: 100%; }
.recent a b { font-size: 14.5px; font-weight: 500; }
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta { display: flex; gap: 6px; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 80; padding: 6px; background: rgba(240, 240, 239, .92); backdrop-filter: blur(12px); border-radius: var(--pill); }
  .m-cta .btn { flex: 1; padding: 12px 8px; font-size: 11.5px; white-space: normal; line-height: 1.2; }
  body[data-page="product"] .to-top { bottom: 84px; }
  .dropdown.wide { min-width: 0; }
}
.sources { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--steel); }
.sources b { display: block; margin-bottom: 6px; color: var(--black); font-family: var(--mono); text-transform: uppercase; font-size: 11px; font-weight: 500; }
.sources ul { padding-left: 18px; display: grid; gap: 4px; }
.sources a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.sources a:hover { color: var(--black); }
.sources p { margin-top: 6px; font-size: 12.5px; color: var(--steel-2); }
sup.est { color: var(--hv); font-weight: 600; margin-left: 1px; }

/* ---------- motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
.js-motion .rv { opacity: 1; transform: none; }

@media print {
  .topbar, .header, .footer, .side, .page-tools, .btn, .cta-box, .mobile-menu, .tabs, .gallery .thumbs, .scroll-bar, .to-top, .toasts, .m-cta, .search-modal { display: none !important; }
  .tab-pane { display: block !important; }
  .with-side { grid-template-columns: 1fr; padding: 0; }
  .panel { padding: 0; background: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* social icons (footer) */
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: #1c1c1c; color: #fff; display: grid; place-items: center; transition: background .2s, color .2s; }
.social a:hover { background: var(--lime); color: #000; }
.social svg { width: 18px; height: 18px; }
/* requisites (contacts page) */
.panel.req { grid-column: 1 / -1; }
.panel.req table.spec td:first-child { width: 40%; }
