/* Vega Swiss Catalog UI */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #5a5a5a;
  --line: #0a0a0a;
  --line-soft: #e5e5e5;
  --blue: #1b5cff;
  --blue-hover: #0f46d4;
  --surface: #f6f6f6;
  --max: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link:hover { opacity: 0.9; color: inherit; }
.logo-link picture {
  display: block;
  line-height: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--blue); }
.nav-search {
  display: flex;
  border: 1px solid var(--ink);
  height: 36px;
}
.nav-search input {
  border: 0;
  outline: 0;
  padding: 0 12px;
  width: 180px;
  font: inherit;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
}
.nav-search button {
  border: 0;
  border-left: 1px solid var(--ink);
  background: #fff;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.nav-search button:hover { background: var(--ink); color: #fff; }

.badge-test {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 3px 8px;
  color: var(--muted);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.lang-switch a {
  color: var(--muted);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.lang-switch a.is-active {
  color: var(--ink);
  border-bottom-color: var(--blue);
}
.lang-switch a:hover { color: var(--blue); }
.lang-sep { color: #ccc; font-weight: 400; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 40px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
  max-width: 16ch;
}
.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 48ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  margin: 28px 0 40px;
}
.stat {
  padding: 18px 16px;
  border-right: 1px solid var(--ink);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.stat span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.grid-brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  border: 0;
}
.brand-card {
  border: 0;
  padding: 12px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  transition: background 0.15s ease;
  text-align: center;
}
.brand-card:hover { background: var(--surface); color: inherit; }
.brand-card .brand-logo {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  position: relative;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.brand-card .brand-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
}
.brand-card .brand-logo .no-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  padding: 8px;
  text-align: center;
}
.brand-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand-card .meta {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--mono);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.toolbar form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.toolbar input,
.toolbar select {
  border: 1px solid var(--ink);
  background: #fff;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  min-width: 0;
}
.toolbar input { flex: 1; min-width: 180px; }
.toolbar button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.toolbar button:hover,
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  border: 0;
}
.product-card {
  border: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 100%;
  transition: background 0.15s ease;
}
.product-card:hover { background: var(--surface); color: inherit; }
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.product-card .thumb img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-card .thumb .placeholder {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
}
.product-card .body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card .brand-line {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.product-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.product-card .sku {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.product-card .price {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 700;
  font-size: 14px;
}
.product-card .price .on-request {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card .cta {
  margin-top: 12px;
  display: inline-flex;
  width: fit-content;
  height: 34px;
  padding: 0 14px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-items: center;
}
.product-card:hover .cta { background: var(--blue-hover); }

.pager {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.pager a {
  border: 1px solid var(--ink);
  padding: 8px 14px;
}
.pager a:hover { background: var(--ink); color: #fff; }
.pager .muted { color: var(--muted); font-weight: 500; }

/* Product detail */
.crumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--blue); }

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.gallery {
  border: 0;
}
.gallery-main {
  aspect-ratio: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 0;
}
.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.15s ease;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  padding: 12px 0 0;
  background: transparent;
  border: 0;
}
.gallery-thumbs .gallery-thumb,
.gallery-thumbs a {
  border: 0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #f5f5f5;
  cursor: pointer;
  margin: 0;
  font: inherit;
  color: inherit;
  opacity: 0.72;
  transition: opacity 0.15s ease, outline 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.gallery-thumbs .gallery-thumb:hover,
.gallery-thumbs a:hover {
  opacity: 1;
}
.gallery-thumbs .gallery-thumb.is-active {
  opacity: 1;
  outline-color: var(--blue);
  box-shadow: none;
  border: 0;
}
.gallery-thumbs img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.product-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.product-info .path {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 20px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.price-block {
  margin-bottom: 24px;
}
.price-block .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.price-block .amount {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border: 1px solid var(--ink);
}
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.price-list li:last-child { border-bottom: 0; }
.price-list .name { color: var(--muted); }
.price-list .val { font-weight: 700; }

.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 13px;
}
.specs th,
.specs td {
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.specs th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prose {
  font-size: 15px;
  color: #222;
  max-width: 65ch;
}
.prose p { margin: 0 0 12px; }

.site-footer {
  border-top: 1px solid var(--ink);
  padding: 28px 24px 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--ink); }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .nav { gap: 14px; }
  .nav-search input { width: 120px; }
}
@media (max-width: 560px) {
  .grid-products { grid-template-columns: 1fr; }
  .header-inner { min-height: 64px; padding: 0 16px; }
  .nav { display: none; }
  main { padding: 24px 16px 56px; }
  .hero h1 { font-size: 1.8rem; }
}


/* --- Publications --- */
.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  border: 0;
}
.article-card {
  border: 0;
  display: flex;
  flex-direction: column;
  color: inherit;
  background: #fff;
  transition: background 0.15s ease;
  min-height: 100%;
}
.article-card:hover { background: var(--surface); color: inherit; }
.article-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  background: #f5f5f5;
  overflow: hidden;
  border: 0;
}
.article-thumb img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.article-card:hover .article-thumb img {
  transform: translate(-50%, -50%) scale(1.03);
}
.article-thumb .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #bbb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-body time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.article-body h2,
.article-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.article-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.article-body .cta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.article-detail { max-width: 820px; margin: 0 auto; }
.article-detail .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-detail .breadcrumb a { color: var(--blue); }
.article-header time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.article-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.article-header .lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.5;
}
.article-cover {
  margin: 24px 0;
  border: 0;
}
.article-cover img { width: 100%; height: auto; display: block; }
.article-content {
  font-size: 1.02rem;
  line-height: 1.65;
}
.article-content img {
  max-width: 100%;
  height: auto;
}
.article-content p { margin: 0 0 1em; }
.article-back { margin: 36px 0 12px; }
.hero-compact { padding-bottom: 12px; }


/* --- Variants (sizes / options) --- */
.variant-block { margin: 8px 0 4px; }
.variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variant-btn {
  border: 1px solid var(--line-soft, #ddd);
  background: #fff;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.variant-btn:hover { border-color: var(--ink); }
.variant-btn.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  font-weight: 600;
}
.variant-count { font-weight: 400; opacity: 0.7; }
