@charset "UTF-8";
/* ==========================================================================
   HopFreq — technology corporate theme
   ========================================================================== */

:root {
  --bg:        #f4f7fc;
  --bg-2:      #eaf0f9;
  --panel:     #ffffff;
  --panel-2:   #eef3fa;
  --line:      rgba(55, 85, 150, 0.14);
  --line-2:    rgba(55, 85, 150, 0.28);
  --txt:       #0e1a2e;
  --mut:       #56637a;
  --mut-2:     #6f7f9a;
  --acc:       #0891b2;
  --acc-2:     #4a5fe8;
  --acc-3:     #0d9488;
  --warn:      #f59e0b;
  --rad:       14px;
  --rad-lg:    22px;
  --max:       1280px;
  --header-h:  76px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
          Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(70, 105, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 105, 190, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

::selection { background: rgba(8, 145, 178, 0.22); }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------- layout helpers */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.section { padding: 104px 0; position: relative; z-index: 1; }
.section--tight { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(222, 231, 247, 0.8) 30%, rgba(222, 231, 247, 0.8) 70%, transparent); }

.mono {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--acc), transparent);
}

.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head p { color: var(--mut); font-size: 1.06rem; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }

.grad {
  background: linear-gradient(96deg, #0e1a2e 8%, var(--acc) 55%, var(--acc-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(15, 32, 66, 0.045);
  color: var(--txt);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--acc); box-shadow: 0 10px 30px -12px rgba(8, 145, 178, 0.35); }
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: linear-gradient(100deg, var(--acc) 0%, var(--acc-2) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 34px -14px rgba(8, 145, 178, 0.45);
}
.btn--primary:hover { box-shadow: 0 18px 44px -14px rgba(8, 145, 178, 0.55); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 10px 18px; font-size: 0.86rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  color: var(--mut);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--acc); }
.topbar a:hover { color: var(--acc); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: block; line-height: 1.1; }
.logo-text b { font-size: 1.34rem; letter-spacing: 0.02em; }
.logo-text b i { font-style: normal; color: var(--acc); }
.logo img { max-height: 40px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  position: relative;
  padding: 9px 15px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mut);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--txt); background: rgba(15, 32, 66, 0.05); }
.nav-menu a.is-current { color: var(--txt); }
.nav-menu a.is-current::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 32, 66, 0.045);
  cursor: pointer;
  font-size: 0.86rem;
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--acc); }
.lang-btn svg { width: 15px; height: 15px; color: var(--acc); }
.lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--rad);
  box-shadow: 0 24px 60px -20px rgba(30, 55, 110, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
}
.lang:hover .lang-list, .lang:focus-within .lang-list { opacity: 1; visibility: visible; transform: none; }
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--mut);
  transition: background 0.15s, color 0.15s;
}
.lang-list a:hover { background: rgba(8, 145, 178, 0.09); color: var(--txt); }
.lang-list a.is-current { color: var(--acc); background: rgba(8, 145, 178, 0.1); }
.lang-list .tick { font-size: 0.8rem; }

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(15, 32, 66, 0.045);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 1.6px;
  background: var(--txt);
  position: relative;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute; left: 0;
  width: 18px; height: 1.6px;
  background: var(--txt);
  transition: transform 0.25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(246, 249, 253, 0.98);
  backdrop-filter: blur(8px);
  padding: 110px 28px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer a {
  display: block;
  padding: 16px 0;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.drawer .drawer-lang { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.drawer .drawer-lang a {
  width: auto;
  padding: 9px 16px;
  font-size: 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.drawer .drawer-lang a.is-current { border-color: var(--acc); color: var(--acc); }
.drawer .btn { margin-top: 26px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 158px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  background: var(--bg-2);
}
.hero-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: grayscale(0.28) saturate(0.8) contrast(0.94) brightness(1.05);
  transform: scale(1.08);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
.hero-tile--0 img { animation-duration: 24s; animation-delay: -2s; }
.hero-tile--1 img { animation-duration: 28s; animation-delay: -8s; }
.hero-tile--2 img { animation-duration: 30s; animation-delay: -4s; }
.hero-tile--3 img { animation-duration: 26s; animation-delay: -12s; }
.hero-tile--4 img { animation-duration: 32s; animation-delay: -6s; }
.hero-tile--5 img { animation-duration: 22s; animation-delay: -14s; }
/* Every tile keeps the same opacity: the collage's left-to-right falloff is
   done once, by the veil below, so rows stay identical to each other. */
@keyframes heroDrift {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1.5%); }
}
/* The mosaic is palest on the left, where the headline sits, and gets steadily
   clearer toward the right edge. Deliberately no top-to-bottom grade (only the
   last stretch melts into the section below), so every row — including the T/R
   row at the bottom — reads the same.
   Text legibility is additionally helped by .hero-inner::before, the light
   backdrop behind the headline.
   Measured visibility (1440px): ~5% at the far left rising to ~21% at the far
   right, monotonic. */
.hero-collage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 247, 252, 0.8) 0%, rgba(244, 247, 252, 0.38) 100%),
    linear-gradient(180deg, transparent 0%, transparent 84%, var(--bg) 100%),
    linear-gradient(120deg, rgba(8, 145, 178, 0.1) 0%, transparent 55%),
    linear-gradient(300deg, rgba(74, 95, 232, 0.12) 0%, transparent 55%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(70, 105, 190, 0.07) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg,  rgba(70, 105, 190, 0.07) 0 1px, transparent 1px 88px);
  mask-image: radial-gradient(ellipse 70% 55% at 22% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 22% 45%, #000 30%, transparent 80%);
}
.hero .wrap { z-index: 3; }
.hero-inner { max-width: 860px; position: relative; }
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -50px -60px -50px -70px;
  z-index: -1;
  pointer-events: none;
  /* Kept deliberately weak: it used to be 0.92 and, because it is centred on
     the headline, it blanked out the whole left column of the collage. It now
     hugs the text block (radius 47%, so it dies out right where the lead ends)
     and only takes the edge off behind the type. */
  background: radial-gradient(ellipse 47% 50% at 24% 48%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0) 100%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  margin-bottom: 26px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc-3);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acc-3);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2); }
  50%      { box-shadow: 0 0 0 9px rgba(13, 148, 136, 0); }
}
.hero h1 { margin-bottom: 24px; }
.hero-lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--mut);
  margin-bottom: 38px;
  /* The headline behind the block is now only lightly veiled, and the lead is
     the one text element that is small and mid-grey; a soft halo keeps it
     crisp without needing a big white wash over the whole left column. */
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

/* --------------------------------------------------------- product cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 252, 0.96));
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(8, 145, 178, 0.5), transparent 40%, transparent 60%, rgba(74, 95, 232, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(35, 60, 120, 0.25); }
.card:hover::before { opacity: 1; }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--panel-2);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02) brightness(0.98);
  transition: transform 0.6s ease, filter 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.07); filter: saturate(1) contrast(1.02) brightness(1); }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(235, 241, 250, 0.9)),
              repeating-linear-gradient(0deg, rgba(8, 145, 178, 0.07) 0 1px, transparent 1px 4px);
}
.card-icon {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  color: var(--acc);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover .card-icon { box-shadow: 0 0 26px -6px rgba(8, 145, 178, 0.55); border-color: var(--acc); }
.card-icon svg { width: 24px; height: 24px; }

.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; font-size: 1.24rem; }
.card-body h3 a:hover { color: var(--acc); }
.card-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-3);
  margin-bottom: 10px;
}
.card-body p { color: var(--mut); font-size: 0.94rem; margin-bottom: 20px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--acc);
}
.card-link svg { width: 15px; height: 15px; transition: transform 0.24s ease; }
.card:hover .card-link svg { transform: translateX(5px); }
.card-spec {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--mut-2);
  letter-spacing: 0.04em;
}

/* big first card on home */
.grid-3 .card--wide { grid-column: span 2; }
.card--wide .card-media { aspect-ratio: 16 / 8; }

/* ------------------------------------------------------------- why grid */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-item {
  position: relative;
  padding: 32px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(238, 244, 252, 0.8));
  transition: transform 0.26s ease, border-color 0.26s ease;
}
.why-item:hover { transform: translateY(-5px); border-color: var(--line-2); }
.why-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--acc);
  margin-bottom: 16px;
}
.why-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-item p { color: var(--mut); font-size: 0.92rem; margin: 0; }
.why-item::after {
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--acc), transparent);
  opacity: 0.45;
}

/* ------------------------------------------------------- applications */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.app-item {
  position: relative;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: border-color 0.26s ease, transform 0.26s ease;
}
.app-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  /* No grayscale filter here: the artwork carries its own contrast (bright
     strokes on a mid-slate panel). Desaturating it was compensating for
     washed-out artwork and cost the line art its legibility. */
  filter: saturate(1.02) contrast(1.04);
  transition: transform 0.7s ease, filter 0.4s ease;
}
.app-item:hover img { transform: scale(1.08); filter: saturate(1.08) brightness(1.03) contrast(1.06); }
.app-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 30%, rgba(238, 244, 252, 0.92));
}
.app-item:hover { border-color: var(--acc); transform: translateY(-4px); }
.app-item h3 { position: relative; z-index: 2; margin: 0; font-size: 1.08rem; }
.app-item .app-idx {
  position: absolute;
  top: 18px; right: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--acc);
  letter-spacing: 0.16em;
}

/* --------------------------------------------------------------- CTA */
.cta-band {
  position: relative;
  padding: 74px 56px;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 120% at 12% 0%, rgba(8, 145, 178, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 120% at 92% 100%, rgba(74, 95, 232, 0.14), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 252, 0.92));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(50, 85, 160, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(50, 85, 160, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 12px; max-width: 640px; }
.cta-band p { color: var(--mut); max-width: 620px; margin: 0; }

/* --------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #e8eef7);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding: 72px 0 48px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mut-2);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--mut); font-size: 0.93rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--acc); }
.footer-about p { color: var(--mut); font-size: 0.92rem; max-width: 340px; }
.footer-contact li { display: flex; gap: 11px; color: var(--mut); font-size: 0.92rem; line-height: 1.65; }
.footer-contact svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--acc); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--mut-2);
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-langs a {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--mut);
}
.footer-langs a:hover, .footer-langs a.is-current { border-color: var(--acc); color: var(--acc); }

/* ---------------------------------------------------------- page header */
.page-head {
  position: relative;
  padding: 168px 0 70px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 20% 0%, rgba(8, 145, 178, 0.1), transparent 65%),
              radial-gradient(ellipse 50% 90% at 85% 0%, rgba(74, 95, 232, 0.1), transparent 65%);
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: 16px; max-width: 900px; }
.page-head p { color: var(--mut); max-width: 720px; font-size: 1.06rem; margin: 0; }

.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; font-size: 0.82rem; color: var(--mut-2); }
.crumb li + li::before { content: "/"; margin-right: 10px; color: var(--mut-2); }
.crumb a:hover { color: var(--acc); }
.crumb li[aria-current="page"] { color: var(--txt); }

/* ----------------------------------------------------- product listing */
.product-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.product-filters a {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.87rem;
  color: var(--mut);
  transition: all 0.2s;
}
.product-filters a:hover { border-color: var(--acc); color: var(--txt); }
.product-filters a.is-active { background: rgba(8, 145, 178, 0.1); border-color: var(--acc); color: var(--acc); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  font-size: 0.94rem;
}
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; vertical-align: top; }
.spec-table th {
  width: 42%;
  font-weight: 500;
  color: var(--mut);
  background: rgba(15, 32, 66, 0.035);
}
.spec-table td { font-family: var(--mono); font-size: 0.88rem; color: var(--txt); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(238, 244, 252, 0.9));
  padding: 30px 28px;
}
.panel + .panel { margin-top: 24px; }
.panel h3 { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h3::before {
  content: "";
  width: 3px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
}

.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--mut);
  font-size: 0.94rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border: 1px solid var(--acc);
  border-radius: 2px;
  transform: rotate(45deg);
}

.pd-figure { border-radius: var(--rad-lg); overflow: hidden; border: 1px solid var(--line); margin: 34px 0; }
.pd-figure img { width: 100%; }

/* ------------------------------------------------------------- entry */
.entry { max-width: 820px; font-size: 1.03rem; color: #3d4a61; }
.entry h2 { margin-top: 1.8em; font-size: 1.7rem; color: #0e1a2e; }
.entry h3 { margin-top: 1.5em; color: #0e1a2e; }
/* The first element must not add a top margin — page content should start
   exactly where the section begins (keeps About in line with Contact). */
.entry > :first-child { margin-top: 0 !important; }
.entry > :first-child h2,
.entry > :first-child h3 { margin-top: 0 !important; }
.entry a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.entry blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 2px solid var(--acc);
  background: rgba(8, 145, 178, 0.07);
  color: var(--mut);
}
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.94rem; }
.entry th, .entry td { border: 1px solid var(--line); padding: 12px 14px; }
.entry th { background: rgba(15, 32, 66, 0.04); text-align: left; }
.entry img { border-radius: var(--rad); }
.entry ul li, .entry ol li { margin-bottom: 8px; }
.entry .wp-block-columns { gap: 28px; }
.entry .wp-block-button__link {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--acc), var(--acc-2));
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

/* -------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-list li:first-child { padding-top: 0; }
.contact-info-list .ci-ico {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--acc);
  background: rgba(8, 145, 178, 0.06);
}
.contact-info-list .ci-ico svg { width: 19px; height: 19px; }
.contact-info-list strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-info-list span { color: var(--txt); font-size: 0.98rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut-2);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 32, 66, 0.04);
  color: var(--txt);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--acc);
  background-color: rgba(8, 145, 178, 0.07);
}
.field textarea { min-height: 140px; resize: vertical; }
.phone-group { display: flex; gap: 8px; }
.phone-group .phone-code {
  flex: 0 1 220px;
  min-width: 0;
  width: auto;
  padding-right: 34px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7f9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.phone-group input { flex: 1 1 0; min-width: 130px; width: auto; }
.captcha-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.captcha-q {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(8, 145, 178, 0.08);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  user-select: none;
}
.captcha-row input { flex: 1 1 120px; min-width: 110px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; font-size: 0.92rem; display: none; }
.form-msg.ok { color: var(--acc-3); display: block; }
.form-msg.err { color: #ff7a7a; display: block; }

/* ------------------------------------------------------------- 404 */
.error-page { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 180px 24px 100px; }
.error-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--acc), var(--acc-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------------------------------------------------- animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-menu, .nav-right .btn { display: none; }
  .burger { display: inline-flex; }
  .section { padding: 76px 0; }
  .grid-3, .grid-2, .app-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .grid-3 .card--wide { grid-column: span 1; }
  .cta-band { padding: 46px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .page-head { padding: 128px 0 52px; }
  .page-head--slim { padding-top: 96px; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 520px) {
  .hero-collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, 1fr); }
  .wrap { padding: 0 18px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text b { font-size: 1.2rem; }
}

/* ==========================================================================
   Product catalog — tree + detail
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.catalog-section { padding: 0 0 90px; position: relative; z-index: 1; }

.catalog {
  --tree-w: 300px;
  --tree-gap: 28px;
  display: grid;
  grid-template-columns: var(--tree-w) minmax(0, 1fr);
  gap: var(--tree-gap);
  align-items: start;
  position: relative;
  transition: grid-template-columns 0.3s ease;
}
/* Explicit columns: the detail pane must keep its own column even while the
   tree is narrowed, otherwise it would be placed into the 46px first column. */
.catalog-tree { grid-column: 1; grid-row: 1; }
.catalog-detail { grid-column: 2; grid-row: 1; }

/* Collapsed: the panel shrinks to a narrow rail holding only the toggle. */
.catalog.is-collapsed { --tree-w: 46px; }
.catalog.is-collapsed .tree-search,
.catalog.is-collapsed #tree-toggle-all,
.catalog.is-collapsed .tree-scroll { display: none; }
.catalog.is-collapsed .tree-head {
  justify-content: center;
  padding: 12px 0;
  border-bottom: 0;
}
.catalog-collapse-icon { width: 15px; height: 15px; transition: transform 0.3s ease; }
.catalog.is-collapsed .catalog-collapse-icon { transform: rotate(180deg); }

/* ---- left tree ---- */
.catalog-tree {
  /* No inner scrollbar and no sticky pinning: the tree grows downward as it
     expands and the whole page scrolls (see .tree-scroll). */
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
}
/* Search row: the input plus the compact expand-all and collapse buttons. */
.tree-head {
  display: flex; align-items: center; gap: 6px;
  padding-right: 12px;
  border-bottom: 1px solid var(--line);
}
.tree-search {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  position: relative;
}
.tree-search svg { width: 17px; height: 17px; color: var(--mut-2); flex: none; }
.tree-search input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font: inherit; font-size: 0.9rem; color: var(--txt);
}
/* Search results dropdown. JS appends it to <body> and positions it with
   position:fixed under the search input: any placement inside the tree panel
   would be clipped by `.catalog-tree { overflow: hidden }`. Coordinates and
   size are set from JS (placeDropdown). */
.search-results {
  position: fixed;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  list-style: none; margin: 0; padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 26px 50px -22px rgba(20, 40, 90, 0.4);
  z-index: 200;
  overflow-wrap: anywhere;
}
.search-results li { margin: 0; }
.search-results li + li { margin-top: 2px; }
.search-results a { display: block; padding: 9px 12px; font-size: 0.88rem; border-radius: 8px; color: var(--txt); }
.search-results a:hover, .search-results a.is-hl { background: var(--panel-2); color: var(--acc); }
.search-results .search-empty { padding: 12px; font-size: 0.85rem; color: var(--mut); text-align: center; }

.tree-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
  font-size: 0.78rem; color: var(--mut); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.tree-btn:hover { color: var(--acc); border-color: var(--acc); background: rgba(8, 145, 178, 0.06); }
.tree-btn-icon { width: 13px; height: 13px; transition: transform 0.24s ease; }
.tree-btn.is-collapsed .tree-btn-icon { transform: rotate(180deg); }
.tree-btn--icon {
  flex: none;
  width: 30px; height: 30px; padding: 0;
  justify-content: center;
}

.tree-scroll { overflow: visible; padding: 10px 10px 14px; }
.tree-root { list-style: none; margin: 0; padding: 0; }
.tree-root > .tree-branch { border-bottom: 1px dashed var(--line); }
.tree-root > .tree-branch:last-child { border-bottom: 0; }
.tree-branch { margin: 0; }

.tree-node { display: flex; align-items: center; gap: 2px; padding: 2px 0; }
.tree-toggle {
  width: 26px; height: 26px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--mut-2);
  border-radius: 6px; padding: 0;
}
.tree-toggle:hover { background: var(--panel-2); color: var(--txt); }
.tree-toggle svg { width: 13px; height: 13px; transition: transform 0.2s ease; }
.tree-toggle.open svg { transform: rotate(90deg); }

.tree-root > .tree-branch > .tree-node > a {
  font-weight: 600; font-size: 0.98rem; padding: 6px 8px; border-radius: 8px; flex: 1;
}
.tree-root > .tree-branch > .tree-node a:hover { color: var(--acc); }
.tree-children {
  list-style: none; margin: 0; padding: 0 0 6px 14px;
  display: none;
}
.tree-children.open { display: block; }
.tree-children > .tree-branch > .tree-node > a {
  font-size: 0.9rem; padding: 5px 8px; border-radius: 7px; display: block; color: var(--txt);
}
.tree-products { list-style: none; margin: 0; padding: 0 0 6px 18px; display: none; }
.tree-products.open { display: block; }
.tree-products li { margin: 0; }
.tree-products a {
  display: block; font-size: 0.84rem; color: var(--mut);
  padding: 4px 8px; border-radius: 7px;
  border-left: 2px solid transparent;
}
.tree-products a:hover { color: var(--acc); background: var(--panel-2); }
.tree-products a.is-active,
.tree-label.is-active { color: var(--acc); background: rgba(8, 145, 178, 0.1); font-weight: 600; }
.tree-products a.is-active { border-left-color: var(--acc); }

/* ---- right detail pane ---- */
.catalog-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 34px;
  min-height: 420px;
  position: relative;
}
.catalog-detail.is-loading::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(110deg, transparent 30%, rgba(8, 145, 178, 0.08) 48%, transparent 62%);
  animation: hopfreq-shimmer 1.3s linear infinite;
  border-radius: var(--rad-lg);
  pointer-events: none;
}
@keyframes hopfreq-shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }

.detail-empty { color: var(--mut); padding: 60px 20px; text-align: center; }

.detail-head { margin-bottom: 26px; }
.detail-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 10px; }
.detail-tagline { color: var(--mut); font-size: 1.02rem; max-width: 720px; }
.detail-sub { font-size: 1.25rem; margin: 30px 0 18px; }
.panel-title { font-size: 1.15rem; }

/* Product detail: a single compact model label, then straight to the
   datasheet viewer. `.detail-head h1` sets the big page-title size, so this
   needs a higher specificity (two classes) to keep the label at the original
   .eyebrow scale. */
.detail-head--bare { margin-bottom: 4px; }
.detail-head .detail-model {
  margin: 0 0 14px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
}

/* Slim page header: breadcrumb only, no oversized title (product centre,
   About, Contact). Content below starts much higher up the page. */
.page-head--slim { padding: 128px 0 0; border-bottom: 0; }
.page-head--slim .crumb { margin-bottom: 0; }
.section--flush { padding-top: 26px; }

/* family cards (overview + homepage) */
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.family-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 30px 28px; border-radius: var(--rad);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.family-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 220px at 12% -8%, rgba(8, 145, 178, 0.16), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.family-card:hover { transform: translateY(-5px); box-shadow: 0 28px 54px -30px rgba(20, 45, 110, 0.35); }
.family-card:hover::before { opacity: 1; }
.family-icon { width: 52px; height: 52px; color: var(--acc); display: grid; place-items: center; }
.family-icon svg { width: 52px; height: 52px; }
.family-card h2, .family-card h3 { font-size: 1.4rem; margin: 4px 0 0; }
.family-card p { color: var(--mut); font-size: 0.94rem; margin: 0; flex: 1; }
.family-meta { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; color: var(--acc); text-transform: uppercase; }

/* wide spec tables */
.spec-wrap { overflow-x: auto; }
.detail .spec-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.detail .spec-table th { font-weight: 600; background: var(--panel-2); white-space: nowrap; }
.detail .spec-table th,
.detail .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail .spec-table td { font-family: inherit; font-size: 0.86rem; }
.spec-group td { background: var(--panel-2); font-weight: 600; color: var(--acc); font-size: 0.8rem; letter-spacing: 0.06em; }

/* downloads */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { margin: 0 0 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.doc-list a:hover { border-color: var(--acc); background: rgba(8, 145, 178, 0.06); }
.doc-list svg { width: 20px; height: 20px; color: var(--acc); flex: none; }
.doc-name { font-weight: 600; font-size: 0.94rem; flex: 1; }
.doc-size { color: var(--mut-2); font-size: 0.8rem; font-family: var(--mono); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--panel-2); transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* ---------------------------------------------------- parameter tables */
.param-block { margin: 0 0 44px; }
.param-block:last-child { margin-bottom: 0; }
.param-title {
  position: relative;
  margin: 0 0 8px;
  padding-left: 15px;
  font-size: 1.24rem;
}
.param-title::before {
  content: "";
  position: absolute; left: 0; top: 0.26em; bottom: 0.26em;
  width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--acc), var(--acc-2));
}
.param-desc { margin: 0 0 16px 15px; color: var(--mut); font-size: 0.94rem; }
.param-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--panel);
  box-shadow: 0 18px 42px -36px rgba(20, 45, 110, 0.5);
}
.param-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.param-table thead th {
  padding: 9px 11px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-2);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; text-align: left;
  /* Long headers wrap onto a second line instead of stretching the column,
     so a column whose cells only hold a number stays narrow. */
  white-space: normal; line-height: 1.3; vertical-align: bottom;
  color: var(--mut);
}
.param-table tbody th,
.param-table tbody td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.param-table tbody tr:last-child th,
.param-table tbody tr:last-child td { border-bottom: 0; }
.param-table tbody tr { transition: background 0.18s ease; }
.param-table tbody tr:hover { background: rgba(8, 145, 178, 0.055); }
.param-table .col-model { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.param-table thead .col-model { background: var(--panel-2); }
.param-table tbody tr:hover .col-model { background: #f6fbff; }
.param-table .col-model a { font-family: var(--mono); font-weight: 600; color: var(--acc); }
.param-table .col-model a:hover { text-decoration: underline; }
.param-table .col-ds { text-align: right; }
.ds-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: var(--acc);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ds-link:hover { border-color: var(--acc); background: rgba(8, 145, 178, 0.08); }
.ds-link svg { width: 13px; height: 13px; }

/* ------------------------------------------------- datasheet + download */
.ds-panel { margin-top: 4px; }

/* Datasheet page flipper. The pages are plain images, so there is no frame
   and no browser PDF chrome — the sheet sits directly on the page. */
.ds-viewer { position: relative; margin: 0; }
.ds-pages { position: relative; }
.ds-page {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.ds-page.is-active { display: block; }
.ds-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  color: var(--acc);
  cursor: pointer;
  box-shadow: 0 8px 20px -12px rgba(14, 26, 46, 0.45);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.ds-nav:hover {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
  transform: translateY(-50%) scale(1.07);
  box-shadow: 0 14px 28px -12px rgba(8, 145, 178, 0.6);
}
.ds-nav:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 3px; }
.ds-nav:disabled { opacity: 0.28; cursor: default; pointer-events: none; box-shadow: none; }
.ds-nav svg { width: 22px; height: 22px; }
.ds-prev { left: 14px; }
.ds-next { right: 14px; }
.ds-counter {
  margin-top: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  color: var(--mut);
}
.ds-counter .ds-sep { margin: 0 6px; opacity: 0.55; }
@media (max-width: 640px) {
  .ds-nav { width: 42px; height: 42px; }
  .ds-nav svg { width: 19px; height: 19px; }
  .ds-prev { left: 8px; }
  .ds-next { right: 8px; }
}

/* Fallback: native PDF viewer when no page images exist. */
.ds-viewer iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.47;
  min-height: 560px;
  max-height: 1500px;
  border: 0;
  border-radius: 6px;
  background: var(--panel-2);
}
.ds-hint { margin: 10px 2px 0; color: var(--mut-2); font-size: 0.82rem; text-align: right; }
.ds-pending {
  margin: 0;
  padding: 40px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--mut-2);
  font-size: 0.94rem;
  text-align: center;
}
/* Product photos and the datasheet download share one row, so the download
   button sits beside the pictures instead of at the very bottom of the page. */
.pd-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 24px;
  align-items: start;
  margin-top: 30px;
}
.pd-media-row > :only-child { grid-column: 1 / -1; }
.pd-media { min-width: 0; }
.pd-media .panel-title { margin: 0 0 14px; }

.pd-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 252, 0.95));
}
.pd-dl-badge {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(8, 145, 178, 0.14), rgba(74, 95, 232, 0.14));
  color: var(--acc);
}
.pd-dl-badge svg { width: 24px; height: 24px; }
.pd-download h3 { margin: 0 0 4px; font-size: 1.08rem; }
.pd-dl-meta {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mut-2);
}
.pd-download .btn { width: 100%; justify-content: center; }
.pd-download .ds-open { margin-top: 12px; }

.ds-open { color: var(--mut); font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }
.ds-open:hover { color: var(--acc); }

@media (max-width: 900px) {
  .pd-media-row { grid-template-columns: 1fr; }
  /* Keep the download above the photos on narrow screens. */
  .pd-download { order: -1; }
}

/* ------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 15, 30, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-fig { margin: 0; max-width: 92vw; max-height: 86vh; }
.lightbox-img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.04);
}
.lightbox-btn {
  position: absolute;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-btn:hover { background: rgba(8, 145, 178, 0.85); transform: scale(1.06); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-close { top: 18px; right: 20px; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 520px) {
  .lightbox-btn { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* compact CTA */
.pd-back { display: flex; justify-content: flex-end; margin-top: 26px; }
.cta-band.compact { margin-top: 34px; }
.cta-band.compact h2 { font-size: 1.4rem; margin-bottom: 6px; }

@media (max-width: 1080px) {
  .catalog { --tree-w: 250px; --tree-gap: 18px; }
}
@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .catalog-tree, .catalog-detail { grid-column: 1; grid-row: auto; }
  .catalog-detail { padding: 22px 18px; }
  .family-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .catalog-detail { padding: 18px 14px; }
  .gallery { grid-template-columns: 1fr; }
}

