/* LOMMART: shared styles. Tokens, fonts, the floating capsule and its menu, and every inner-page component.
   Onest for text (it has Cyrillic), JetBrains Mono for numbers and labels. Self-hosted. Red is an accent only. */
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url(fonts/onest-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url(fonts/onest-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-display: swap; src: url(fonts/jetbrains-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --surface: #08080a;
  --surface-2: #0e0f12;
  --ink: #f2f3f5;
  --chrome: #c9ced6;
  --chrome-2: #8e949e;
  --glass: rgba(28, 29, 33, 0.52);
  --glass-2: rgba(18, 19, 22, 0.6);
  --accent: #f60d0d;
  --line: rgba(201, 206, 214, 0.16);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--surface); border-radius: 8px; text-decoration: none; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 38px); }
.lm-page { padding-top: 112px; min-height: 70vh; }
.lm-page-sim { padding-top: 0; }

/* ---------------------------------------------------------------- the floating capsule */
.nav-wrap { position: fixed; left: 0; right: 0; top: var(--nav-top, max(14px, env(safe-area-inset-top, 0px))); z-index: 80; display: flex; justify-content: center; padding: 0 max(10px, env(safe-area-inset-left, 0px)) 0 max(10px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.nav { pointer-events: auto; display: flex; align-items: center; gap: 16px; padding: 7px 9px 7px 12px; max-width: 100%; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.nav-logo { display: block; height: 26px; width: 74px; flex: none; }
.nav-logo svg { display: block; width: 100%; height: 100%; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 10px 14px; border-radius: 18px; font-size: 14px; font-weight: 500; color: var(--chrome-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: background 0.25s, color 0.25s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); background: rgba(8, 8, 10, 0.55); }
.seg { display: flex; padding: 3px; border-radius: 20px; background: rgba(8, 8, 10, 0.5); }
.seg button { border: 0; background: transparent; color: var(--chrome-2); padding: 8px 14px; min-height: 44px; border-radius: 17px; font-size: 13px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.25s, color 0.25s; }
.seg button[aria-pressed='true'] { background: rgba(8, 8, 10, 0.9); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.menu-btn { border: 0; background: transparent; color: var(--chrome); padding: 8px 14px; min-height: 44px; border-radius: 18px; font-size: 13px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-btn:hover { color: var(--ink); }

.lm-menu { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 10, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lm-menu[hidden] { display: none; }
.lm-menu-card { position: relative; width: min(440px, 100%); display: flex; flex-direction: column; gap: 4px; padding: 28px 26px 22px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--line); }
.lm-menu-close { position: absolute; right: 14px; top: 12px; border: 0; background: none; color: var(--chrome-2); font-size: 13px; min-height: 44px; padding: 0 10px; cursor: pointer; }
.lm-menu-link { display: block; padding: 12px 0; font-size: clamp(26px, 6vw, 34px); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; border-bottom: 1px solid var(--line); }
.lm-menu-link:hover { color: var(--accent); }
.lm-menu-meta { margin-top: 18px; font-size: 13px; color: var(--chrome-2); line-height: 1.6; }
.lm-menu-small { margin-top: 10px; font-size: 12px; color: var(--chrome-2); }

/* ---------------------------------------------------------------- type and parts */
.eyebrow { font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--chrome-2); margin-bottom: 14px; }
.eyebrow a { text-decoration: none; }
.page-head { padding-bottom: 28px; }
.page-head h1, .buy h1 { font-size: clamp(36px, 5.2vw, 64px); }
.lede { margin-top: 18px; max-width: 62ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--chrome); }
.lede p { margin: 0; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; }
.section-title i, .row i { display: block; width: 3px; height: 1.1em; background: var(--accent); border-radius: 1px; flex: none; }
.small-label { font: 600 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--chrome-2); display: block; }
.prose { max-width: 66ch; color: var(--chrome); }
.prose p + p { margin-top: 1em; }
.prose h1 { color: var(--ink); margin-bottom: 20px; font-size: clamp(30px, 4vw, 46px); }
.text-link { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--chrome-2); padding-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.rows { display: grid; gap: 16px; }
.rows.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 48px; }
.row { display: grid; grid-template-columns: 3px 1fr; column-gap: 12px; align-items: start; }
.row i { grid-row: span 2; height: 100%; min-height: 36px; }
.row span { font: 600 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--chrome-2); }
.row b { margin-top: 2px; font-weight: 500; font-size: 16px; line-height: 1.4; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.15s var(--ease), background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(242, 243, 245, 0.06); border-color: rgba(201, 206, 214, 0.4); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8, 8, 10, 0.4); color: var(--chrome); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.chip:hover { color: var(--ink); border-color: rgba(201, 206, 214, 0.4); }
.chip.on { color: var(--ink); border-color: var(--accent); background: rgba(8, 8, 10, 0.85); }

.glass { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 26px; }

/* the "light table": a photo with its own white backdrop merges into the tile */
.lt { margin: 0; background: #ecedf0; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.lt img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.lt-empty { aspect-ratio: 3 / 4; }

/* ---------------------------------------------------------------- catalog and series */
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: 56px; }
.series-card { display: flex; flex-direction: column; gap: 22px; padding: 18px 18px 26px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); }
.series-card-photo { display: block; }
.series-card-photo .lt { aspect-ratio: 4 / 3; }
.series-card-body { padding: 0 8px; }
.series-card h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.series-card h2 a { text-decoration: none; }
.series-card p { color: var(--chrome); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.models { width: 100%; border-collapse: collapse; font-size: 15px; }
.models th { text-align: left; font: 600 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--chrome-2); padding: 16px 20px; border-bottom: 1px solid var(--line); }
.models td { padding: 15px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.models tr:last-child td { border-bottom: 0; }
.models tbody tr:hover { background: rgba(242, 243, 245, 0.04); }
.models td a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { display: block; text-decoration: none; transition: transform 0.35s var(--ease); }
.product-card:hover { transform: translateY(-4px); }
.product-card .lt { aspect-ratio: 3 / 4; margin-bottom: 14px; }
.product-card-sku { display: block; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.product-card-len { display: block; font: 500 12px var(--mono); color: var(--chrome-2); letter-spacing: 0.06em; margin-top: 2px; }
.next-series { padding: 40px 0 70px; color: var(--chrome-2); }
.next-series a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }
section.wrap { margin-bottom: 64px; }

/* ---------------------------------------------------------------- a cable page */
.pdp-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 36px; align-items: start; }
.gallery-main .lt { aspect-ratio: 3 / 4; }
/* tiles with a fixed shape: the photo fills it exactly, never overflows */
.series-card-photo .lt, .product-card .lt, .gallery-main .lt { position: relative; }
.series-card-photo .lt img, .product-card .lt img, .gallery-main .lt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.series-card-photo .lt img { object-fit: cover; }
.series-card-photo .tile-cm img { object-position: 50% 50%; }
.series-card-photo .tile-sa img { object-position: 50% 100%; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { display: block; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #ecedf0; border: 2px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb.on { border-color: var(--accent); }
.buy { position: sticky; top: 110px; display: grid; gap: 14px; }
.buy .btn { margin-top: 6px; }
.pdp-sec { margin-top: 24px; }
.band { position: relative; overflow: hidden; margin: 24px 0 64px; border-block: 1px solid var(--line); }
.band-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(0.42) saturate(1.05); }
.band-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 560px); align-items: center; padding-block: 64px; min-height: 440px; }
.components { display: grid; gap: 12px; margin-bottom: 26px; }
.comp { display: grid; gap: 4px; padding: 18px 20px; }
.comp strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.comp em { font-style: normal; font-size: 14px; color: var(--chrome-2); }
/* the plate runs off the right edge of the screen, as the cable does */
.band-plate { position: absolute; z-index: 0; right: 0; top: 50%; transform: translateY(-50%); width: min(1180px, 64vw); height: auto; display: block; pointer-events: none; }

/* ---------------------------------------------------------------- the 3D page */
.sim { position: relative; width: 100%; height: 100svh; min-height: 520px; background: #000; display: none; }
html.has-sim .sim { display: block; }
.sim iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.sim-fallback { padding-top: 120px; display: grid; gap: 24px; }
html.has-sim .sim-fallback { display: none; }
.sim-fallback video { width: 100%; max-width: 960px; border-radius: 16px; background: #000; }
.sim-links { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 28px 56px; }

/* ---------------------------------------------------------------- contacts and forms */
.contacts { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.contact-card .row b { word-break: break-word; }
.lm-form { display: grid; gap: 16px; }
.lm-form label { display: grid; gap: 6px; font-size: 14px; color: var(--chrome); font-weight: 500; }
.opt { font: 400 11px var(--mono); color: var(--chrome-2); letter-spacing: 0.05em; margin-left: 6px; }
.lm-form input[type='text'], .lm-form input[type='email'], .lm-form input[type='tel'], .lm-form textarea { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: rgba(8, 8, 10, 0.6); color: var(--ink); font: inherit; font-size: 16px; }
.lm-form textarea { resize: vertical; min-height: 120px; }
.lm-form input:focus, .lm-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.lm-form .consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13px; color: var(--chrome-2); }
.lm-form .consent input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }
.lm-form .consent a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; font-size: 15px; margin-bottom: 14px; }
.notice.ok { background: rgba(60, 160, 90, 0.15); border: 1px solid rgba(60, 160, 90, 0.4); }
.notice.bad { background: rgba(246, 13, 13, 0.12); border: 1px solid rgba(246, 13, 13, 0.45); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface-2); }
.foot { display: grid; grid-template-columns: auto 1fr 1fr; gap: 36px; padding-block: 40px 48px; align-items: start; }
.foot-logo { display: block; width: 110px; height: 38px; }
.foot-logo svg { width: 100%; height: 100%; display: block; }
.foot-col { display: grid; gap: 6px; font-size: 14px; color: var(--chrome-2); }
.foot-col strong { color: var(--ink); font-weight: 600; }
.foot-col a { text-decoration: none; color: var(--chrome); }
.foot-col a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- motion: one fade-and-rise, nothing else */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp-top { grid-template-columns: 1fr; }
  .buy { position: static; }
  .band-in { min-height: 0; padding-bottom: 8px; }
  .band-plate { position: relative; top: auto; right: auto; transform: none; width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
  .band { display: flex; flex-direction: column; }
  .band-in { padding-bottom: 0; }
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { gap: 8px; padding: 6px 8px 6px 10px; }
  .nav-links { display: none; }
  .nav-logo { height: 22px; width: 62px; }
  .seg button { font-size: 11px; padding: 8px 10px; }
  .lm-page { padding-top: 92px; }
  .cards2 { grid-template-columns: 1fr; }
  .rows.cols2 { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .glass { padding: 20px 18px; }
  body { font-size: 16px; }
}
@media (max-width: 480px) {
  .seg button { font-size: 10px; padding: 8px 8px; }
  .nav-logo { height: 18px; width: 52px; }
  .menu-btn { font-size: 12px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
