/* ==========================================================================
   YUNSA ENERGY — cylindrical lithium cell supplier

   Design language (see README.md, section 3, for the rationale):
     · one accent colour only — vermilion #FF3D17 — everything else neutral
     · near-black #272727 type, warm off-white #FEF8F4 section bands
     · hard-edged rectangles, 2px radii, flat surfaces, borders over shadows
     · small kicker label + large statement headline in every section
     · red arrow text links as the default "learn more" affordance
   ========================================================================== */

:root {
  /* Accent — the only saturated colour on the site */
  --brand: #ff3d17;
  --brand-hover: #e02f0c;
  --brand-tint: #fff1ed;
  --brand-line: #ffd9d0;

  /* Neutrals */
  --ink: #272727;
  --ink-soft: #3d3f41;
  --body: #5c5f63;
  --muted: #8e9297;
  --line: #e6e2de;
  --line-strong: #d5cfc9;

  /* Surfaces */
  --bg: #ffffff;
  --bg-warm: #fef8f4;
  --bg-gray: #f4f3f1;
  --bg-dark: #272727;
  --bg-dark-2: #1c1c1c;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  /* Shape — hard edges, per the reference */
  --r: 2px;
  --r-pill: 2px;

  /* Elevation — used sparingly */
  --sh-hover: 0 2px 4px rgba(39, 39, 39, 0.06), 0 10px 28px rgba(39, 39, 39, 0.09);
  --sh-card: 0 1px 2px rgba(39, 39, 39, 0.05);

  --container: 1240px;
  --gutter: 28px;
  --header-h: 74px;
}

/* --------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.021em;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.65rem);
  line-height: 1.07;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
h4 {
  font-size: 1.02rem;
  line-height: 1.35;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* -------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding: 76px 0 96px;
}
.section--tight {
  padding: 56px 0 68px;
}
.section--warm {
  background: var(--bg-warm);
}
/* compact closing CTA on product detail pages — the whole block should fit
   in one viewport without scrolling */
.section--cta {
  padding: 54px 0 58px;
}
.section--cta .head {
  margin-bottom: 20px;
}
.section--cta h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.section--cta .statement {
  font-size: clamp(1.02rem, 1.45vw, 1.24rem);
  line-height: 1.45;
  max-width: 820px;
}
.section--cta .hero__cta {
  margin-top: 22px;
}
.section--cta .btn--lg {
  padding: 13px 28px;
  font-size: 0.98rem;
}
/* index contact block: same compact rhythm, tighter contact list */
.section--cta .statement + .prose {
  margin-top: 14px;
}
.section--cta .prose {
  font-size: 1.02rem;
  line-height: 1.55;
}
.section--cta .contact-list {
  margin-top: 24px;
}
.section--cta .contact-item {
  padding: 14px 0;
}
.section--cta .contact-item__ic {
  width: 36px;
  height: 36px;
}
/* the old form column is gone — let the contact list use the full row */
.section--cta .inquiry__inner {
  grid-template-columns: 1fr;
  gap: 0;
}
/* denser homepage sections (Why YUNSA, Roadmap) */
.section--dense {
  padding: 58px 0 66px;
}
.section--dense .head {
  margin-bottom: 30px;
}
.section--dense .svc {
  padding: 24px 24px 22px;
}
.section--dense .svc__num {
  margin-bottom: 10px;
}
.section--dense .svc h3 {
  margin-bottom: 8px;
}
.section--dense .svc p {
  font-size: 0.9rem;
  line-height: 1.55;
}
.section--dense .statement {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}
.section--dense .statement + .prose {
  margin-top: 12px;
}
.section--dense .prose {
  font-size: 1rem;
}
.section--dense .rmchart {
  margin-top: 22px;
  max-width: 1060px;
}
.section--dense .rmlegend {
  margin-top: 14px;
}
.section--dense .rmclose {
  margin-top: 20px;
  font-size: 1.02rem;
}
/* homepage applications grid — the whole section should read as one screen */
.section--apps {
  padding: 56px 0 62px;
}
.section--apps .head {
  max-width: none;
  margin-bottom: 26px;
}
.section--apps .applist {
  gap: 2px;
}
.section--apps .app {
  gap: 10px;
  padding: 22px 24px 20px;
}
.section--apps .app svg {
  width: 26px;
  height: 26px;
}
.section--apps .app span {
  font-size: 0.93rem;
}
.section--apps .app small {
  font-size: 0.8rem;
  line-height: 1.45;
}
.section--gray {
  background: var(--bg-gray);
}
.section--dark {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.68);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

/* --------------------------------------------------- kicker + headline */
.kicker {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
  letter-spacing: 0.005em;
}
.section--dark .kicker {
  color: var(--brand);
}

.head {
  max-width: 760px;
  margin-bottom: 56px;
}
.head--center {
  margin-inline: auto;
  text-align: center;
}

/* full-width head for a heading that must sit on a single line */
.head--wide {
  max-width: none;
}
.h2--oneline {
  font-size: clamp(1.4rem, 2.55vw, 2.3rem);
}
@media (min-width: 760px) {
  .h2--oneline {
    white-space: nowrap;
  }
}
.head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.section--dark .head--split {
  border-color: rgba(255, 255, 255, 0.14);
}
@media (max-width: 880px) {
  .head--split {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
}

.lead {
  font-size: 1.09rem;
  color: var(--body);
}
.section--dark .lead {
  color: rgba(255, 255, 255, 0.68);
}

/* Statement block — big claim, Viessmann-style */
.statement {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.34;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-weight: 700;
  max-width: 940px;
}

/* Running body copy that follows a statement — readable, multi-paragraph */
.prose {
  max-width: 940px;
  font-size: 1.09rem;
  line-height: 1.72;
  color: var(--body);
}
.statement + .prose {
  margin-top: 32px;
}
.prose p {
  margin: 0 0 1.15em;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: #111;
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}
.btn--outline-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.9rem;
}
.btn--lg {
  padding: 18px 38px;
  font-size: 1.02rem;
}
.btn--block {
  width: 100%;
}

/* The default in-text action: red label + arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
  transition: color 0.16s;
}
.tlink svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}
.tlink:hover {
  color: var(--brand-hover);
}
.tlink:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------- labels */
.tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--r);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--brand-tint);
  color: var(--brand);
}
.tag--ink {
  background: var(--ink);
  color: #fff;
}
.tag--line {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.83rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}
.topbar__list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.16s;
}
.topbar__item:hover {
  color: #fff;
}
.topbar__item svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.topbar__certs {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 940px) {
  .topbar__certs {
    display: none;
  }
  .topbar__inner {
    justify-content: center;
  }
  .topbar__list > li:nth-child(3) {
    display: none;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header.is-stuck {
  box-shadow: 0 1px 0 rgba(39, 39, 39, 0.06), 0 8px 24px rgba(39, 39, 39, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: var(--header-h);
  transition: min-height 0.22s ease;
}
.header.is-stuck .header__inner {
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
}
/* breathing-light effect on the logo bolt */
.logo-bolt {
  transform-box: fill-box;
  transform-origin: center;
  animation: bolt-breathe 2.8s ease-in-out infinite;
}
@keyframes bolt-breathe {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.72);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.85));
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-bolt {
    animation: none;
  }
}
.logo__mark svg {
  width: 22px;
  height: 22px;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}
.logo__name {
  font-size: 1.16rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo__sub {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.16s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__link:hover {
  color: var(--brand);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.nav__link.is-active {
  color: var(--brand);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  overflow: hidden;
  font-size: 0.79rem;
  font-weight: 700;
}
.lang button {
  padding: 7px 12px;
  color: var(--muted);
  transition: background 0.16s, color 0.16s;
}
.lang button:hover {
  color: var(--ink);
}
.lang button.is-active {
  background: var(--ink);
  color: #fff;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  place-items: center;
}
.burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: background 0.16s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.22s ease;
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}
body.nav-open .burger span {
  background: transparent;
}
body.nav-open .burger span::before {
  transform: translateY(6px) rotate(45deg);
}
body.nav-open .burger span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1120px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 88vw);
    background: #fff;
    padding: 92px 26px 36px;
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  body.nav-open .nav {
    transform: translateX(0);
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    padding: 15px 2px;
    font-size: 1.06rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after {
    left: 2px;
    right: auto;
    width: 26px;
    bottom: 8px;
  }
  .burger {
    display: grid;
  }
  .header__actions > .btn {
    display: none;
  }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(39, 39, 39, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
  z-index: 80;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    96deg,
    rgba(20, 20, 20, 0.93) 0%,
    rgba(20, 20, 20, 0.79) 40%,
    rgba(20, 20, 20, 0.42) 70%,
    rgba(20, 20, 20, 0.55) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 112px 0 100px;
  max-width: 800px;
}
.hero h1 {
  color: #fff;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}
.hero__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
}
.hero__lead {
  margin-top: 24px;
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__strip {
  position: relative;
  z-index: 2;
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 30px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:first-child {
  border-left: 0;
}
.stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.stat__num span {
  color: var(--brand);
}
.stat__label {
  margin-top: 7px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 780px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero__inner {
    padding: 78px 0 66px;
  }
}

/* ==========================================================================
   Certification bar
   ========================================================================== */
.certs {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.certs__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
.certs__track {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.cert {
  flex: 1 1 0;
  min-width: 130px;
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  transition: background 0.2s;
}
.cert:first-child {
  border-left: 0;
}
.cert:hover {
  background: var(--brand-tint);
}
.cert b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
}
.cert small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .cert {
    flex: 1 1 46%;
    border-top: 1px solid var(--line);
  }
  .cert:nth-child(odd) {
    border-left: 0;
  }
  .cert:nth-child(-n + 2) {
    border-top: 0;
  }
}

/* ==========================================================================
   Grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 2px;
  background: var(--line);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--gap {
  gap: 28px;
  background: transparent;
}
@media (max-width: 1040px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 660px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Product card (format card)
   ========================================================================== */
.pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.grid--gap .pcard {
  border: 1px solid var(--line);
}
.pcard:hover {
  border-color: var(--ink);
  box-shadow: var(--sh-hover);
  transform: translateY(-3px);
}
.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-gray);
}
.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.pcard:hover .pcard__media img {
  transform: scale(1.045);
}
.pcard__badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 0;
}
.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 24px 24px;
}
.pcard__format {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 9px;
}
.pcard__title {
  margin-bottom: 10px;
}
.pcard__desc {
  font-size: 0.94rem;
  color: var(--body);
  margin-bottom: 18px;
}
.pcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.spec {
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--mono);
}
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pcard__moq {
  font-size: 0.79rem;
  color: var(--muted);
}
.pcard__moq b {
  color: var(--ink);
  font-family: var(--mono);
}

/* ==========================================================================
   Numbered service blocks
   ========================================================================== */
.svc {
  padding: 34px 30px 30px;
  background: #fff;
  border-top: 3px solid var(--brand);
}
.svc__num {
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.svc h3 {
  margin-bottom: 10px;
}
.svc p {
  font-size: 0.94rem;
}
.svc__media {
  margin: -2px 0 22px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-gray);
}
.svc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Process list
   ========================================================================== */
.process {
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 92px 1fr 1.25fr;
  gap: 32px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--line-strong);
  letter-spacing: -0.02em;
  transition: color 0.22s;
}
.step:hover .step__num {
  color: var(--brand);
}
.step h3 {
  font-size: 1.14rem;
}
.step p {
  font-size: 0.95rem;
}
@media (max-width: 820px) {
  .step {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }
  .step p {
    grid-column: 2;
    margin-top: -6px;
  }
}

/* ==========================================================================
   Split (image + copy)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split--reverse .split__media {
  order: 2;
}
@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .split--reverse .split__media {
    order: 0;
  }
}
.split__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-gray);
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media--wide img {
  aspect-ratio: 16 / 10;
}
.split__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}
.split__cap b {
  color: var(--brand);
  font-family: var(--mono);
}

.check-list {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}
.check-list--2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 26px;
}
@media (max-width: 560px) {
  .check-list--2 {
    grid-template-columns: 1fr;
  }
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.check-list svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}
.check-list b {
  color: var(--ink);
  font-weight: 600;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.mini-stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.mini-stat small {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   Applications
   ========================================================================== */
.applist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.app {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 24px;
  background: #fff;
  transition: background 0.2s;
}
.app:hover {
  background: var(--brand-tint);
}
.app svg {
  width: 30px;
  height: 30px;
  color: var(--brand);
}
.app span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.app small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .applist {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quote {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
}
.quote__text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.75;
  flex: 1;
}
.quote__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  flex: none;
}
.quote__who b {
  display: block;
  font-size: 0.93rem;
  color: var(--ink);
}
.quote__who small {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  text-align: left;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.16s;
}
.faq__q:hover {
  color: var(--brand);
}
.faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand);
  transition: transform 0.28s, opacity 0.2s;
}
.faq__icon::before {
  width: 14px;
  height: 2px;
}
.faq__icon::after {
  width: 2px;
  height: 14px;
}
.faq__item.is-open .faq__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__a p {
  padding: 0 0 28px;
  font-size: 0.96rem;
  max-width: 84%;
}

/* ==========================================================================
   Inquiry
   ========================================================================== */
.inquiry__inner {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 68px;
  align-items: start;
}
@media (max-width: 1000px) {
  .inquiry__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item__ic {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  flex: none;
}
.contact-item__ic svg {
  width: 19px;
  height: 19px;
}
.contact-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-item a,
.contact-item span.val {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 0.16s;
}
.contact-item a:hover {
  color: var(--brand);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
}
@media (max-width: 560px) {
  .form-card {
    padding: 26px 20px;
  }
}
.form-card h3 {
  font-size: 1.42rem;
  margin-bottom: 8px;
}
.form-card__sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 30px;
}
.field {
  margin-bottom: 20px;
}
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .field--row {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.field label .req {
  color: var(--brand);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.field textarea {
  resize: vertical;
  min-height: 118px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b3b6ba;
}
.field .err {
  display: none;
  margin-top: 7px;
  font-size: 0.79rem;
  color: var(--brand);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.field.has-error .err {
  display: block;
}
.form-consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.83rem;
  color: var(--muted);
  margin: 6px 0 24px;
  line-height: 1.6;
}
.form-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand);
  flex: none;
}
.form-note {
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--muted);
  text-align: center;
}
.form-note a {
  color: var(--brand);
  font-weight: 600;
}
.form-success {
  display: none;
  padding: 28px 4px;
}
.form-success.is-on {
  display: block;
}
.form-success__ic {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  margin-bottom: 24px;
}
.form-success__ic svg {
  width: 26px;
  height: 26px;
}
.form-success h3 {
  margin-bottom: 10px;
}
.form-success p {
  font-size: 0.95rem;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 40px;
  padding: 52px 56px;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
}
.cta-band h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: -0.022em;
}
.cta-band p {
  margin-top: 10px;
  font-size: 0.98rem;
}
@media (max-width: 780px) {
  .cta-band {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 26px;
  }
}

/* ==========================================================================
   Page hero (products)
   ========================================================================== */
.pagehero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  padding: 76px 0 84px;
  overflow: hidden;
}
.pagehero__bg {
  position: absolute;
  inset: 0;
}
.pagehero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pagehero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(20, 20, 20, 0.94) 0%,
    rgba(20, 20, 20, 0.82) 52%,
    rgba(20, 20, 20, 0.55) 100%
  );
}
.pagehero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.pagehero h1 {
  color: #fff;
}
.pagehero p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.07rem;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}
.crumbs a:hover {
  color: var(--brand);
}
.crumbs svg {
  width: 12px;
  height: 12px;
}
/* light-background variant (used in .prodhead) */
.crumbs--light {
  color: rgba(39, 39, 39, 0.55);
}
.crumbs--light a {
  color: rgba(39, 39, 39, 0.75);
}
.crumbs--light a:hover {
  color: var(--brand);
}
.pagehero .kicker {
  color: var(--brand);
}

/* ==========================================================================
   Catalogue filters
   ========================================================================== */
.filters {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 48px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.filter-row + .filter-row {
  border-top: 1px solid var(--line);
}
.filter-row__label {
  min-width: 116px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.chip {
  padding: 8px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
  transition: all 0.16s;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-row__count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.filter-row__count b {
  color: var(--ink);
  font-family: var(--mono);
}

/* ==========================================================================
   Catalogue card — spec-forward, compact thumbnail
   ========================================================================== */
.ccard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ccard:hover {
  border-color: var(--ink);
  box-shadow: var(--sh-hover);
  transform: translateY(-3px);
}
.ccard__top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.ccard__thumb {
  width: 74px;
  height: 74px;
  flex: none;
  overflow: hidden;
  background: var(--bg-gray);
}
.ccard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ccard__id {
  min-width: 0;
}
.ccard__format {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.ccard__title {
  font-size: 1.02rem;
  line-height: 1.3;
}
.ccard__specs {
  flex: 1;
  padding: 8px 18px 4px;
  margin: 0;
}
.specrow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.specrow:last-child {
  border-bottom: 0;
}
.specrow dt {
  color: var(--muted);
  flex: none;
}
.specrow dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}
.ccard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 18px;
}
.ccard__moq {
  font-size: 0.79rem;
  color: var(--muted);
}
.ccard__moq b {
  color: var(--ink);
  font-family: var(--mono);
}

/* ==========================================================================
   Spec table
   ========================================================================== */
.spec-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 620px;
}
.spec-table th,
.spec-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.spec-table thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 0;
  white-space: nowrap;
}
.spec-table tbody th {
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-warm);
  width: 34%;
}
.spec-table td {
  color: var(--ink);
}
.spec-table td:first-of-type {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
  border-bottom: 0;
}
.spec-table tbody tr:hover td {
  background: var(--brand-tint);
}

/* ==========================================================================
   Roadmap chart (home page · next generation)
   ========================================================================== */
.rmchart {
  margin-top: 42px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rmchart svg {
  display: block;
  width: 100%;
  min-width: 780px;
  height: auto;
}
.rmlegend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 22px 0 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.rmlegend li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.rmlegend span {
  flex: none;
  width: 34px;
  height: 3px;
  background: var(--ink);
}
.rmlegend span.r-ncm { background: var(--brand); }

/* closing line under the roadmap chart */
.rmclose {
  margin: 34px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--brand);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  padding-top: 76px;
}
/* one-line footer: no top padding, no divider */
.footer--min {
  padding-top: 0;
}
.footer--min .footer__bottom {
  border-top: 0;
  padding: 18px 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__cta {
  text-align: right;
}
@media (max-width: 940px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .footer__cta {
    text-align: left;
  }
}
@media (max-width: 580px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer .logo__name {
  color: #fff;
}
.footer .logo__sub {
  color: rgba(255, 255, 255, 0.4);
}
.footer__about {
  margin-top: 22px;
  font-size: 0.9rem;
  max-width: 400px;
}
.footer__mail {
  margin-top: 18px;
  font-weight: 600;
}
.footer__mail a {
  color: #fff;
  transition: color 0.16s;
}
.footer__mail a:hover {
  color: var(--brand);
}
.footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer__links {
  display: grid;
  gap: 12px;
}
.footer__links a {
  transition: color 0.16s;
}
.footer__links a:hover {
  color: var(--brand);
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.18s, border-color 0.18s;
}
.footer__social a:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.footer__social svg {
  width: 17px;
  height: 17px;
  color: #fff;
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.83rem;
}
.footer__bottom a:hover {
  color: var(--brand);
}
.footer__certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__certs span {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
}
.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.newsletter input:focus {
  outline: none;
  border-color: var(--brand);
}
.newsletter button {
  padding: 0 20px;
  border-radius: var(--r);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.18s;
}
.newsletter button:hover {
  background: var(--brand-hover);
}

/* ==========================================================================
   Floating actions
   ========================================================================== */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab__btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  box-shadow: var(--sh-card);
  transition: background 0.18s, color 0.18s, opacity 0.24s, border-color 0.18s;
}
.fab__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.fab__btn svg {
  width: 21px;
  height: 21px;
}
.fab__btn--wa {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.fab__btn--wa:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}
.fab__btn--top {
  opacity: 0;
  pointer-events: none;
}
.fab__btn--top.is-on {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.07s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.14s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.21s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.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;
}

/* ==========================================================================
   Toast + language menu
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 200;
  max-width: min(460px, calc(100vw - 32px));
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 0.89rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  border-left: 3px solid var(--brand);
  box-shadow: 0 12px 32px rgba(39, 39, 39, 0.22);
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lang-menu {
  position: fixed;
  z-index: 210;
  min-width: 170px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 32px rgba(39, 39, 39, 0.16);
  display: grid;
  gap: 2px;
}
.lang-menu button {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.14s, color 0.14s;
}
.lang-menu button:hover {
  background: var(--brand-tint);
  color: var(--brand);
}
.lang-menu button.is-active {
  background: var(--bg-gray);
}

/* ==========================================================================
   Legal pages — Impressum (§ 5 DDG) and Datenschutzerklärung (GDPR)
   ========================================================================== */
.legal {
  padding: 56px 0 104px;
}

.legal__head {
  max-width: 800px;
  padding-bottom: 30px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.legal__head h1 {
  font-size: clamp(1.8rem, 3.3vw, 2.6rem);
}
.legal__meta {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal__grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding-left: 18px;
  border-left: 2px solid var(--line);
}
.legal__toc h2 {
  margin-bottom: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__toc li + li {
  margin-top: 9px;
}
.legal__toc a {
  font-size: 0.89rem;
  line-height: 1.45;
  color: var(--body);
  transition: color 0.14s;
}
.legal__toc a:hover {
  color: var(--brand);
}

.legal__body {
  max-width: 768px;
}
.legal__body h2 {
  margin: 54px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal__body h3 {
  margin: 30px 0 8px;
  font-size: 1.02rem;
}
.legal__body p,
.legal__body li {
  font-size: 0.97rem;
}
.legal__body p + p {
  margin-top: 12px;
}
.legal__body ul {
  margin-top: 12px;
}
.legal__body li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 1px;
  background: var(--brand);
}
.legal__body a {
  color: var(--brand);
  word-break: break-word;
}
.legal__body a:hover {
  text-decoration: underline;
}
.legal__body strong {
  color: var(--ink);
}

/* Marks a value the operator still has to fill in. */
.legal__fill {
  padding: 1px 5px;
  background: var(--brand-tint);
  border-bottom: 1px solid var(--brand-line);
  font-family: var(--mono);
  font-size: 0.86em;
  color: #a8240a;
}

.note {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--bg-warm);
  border-left: 3px solid var(--brand);
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--ink-soft);
}
.note strong {
  color: var(--ink);
}

.legal__table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.legal__table th,
.legal__table td {
  padding: 10px 14px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.legal__table th {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}
.legal__table td:last-child,
.legal__table th:last-child {
  padding-right: 0;
}

.lang-switch {
  display: inline-flex;
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--line-strong);
}
.lang-switch a {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--body);
  transition: background 0.14s, color 0.14s;
}
.lang-switch a + a {
  border-left: 1px solid var(--line-strong);
}
.lang-switch a:hover {
  background: var(--brand-tint);
  color: var(--brand);
}

@media (max-width: 1000px) {
  .legal__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal__toc {
    position: static;
    padding: 18px 22px;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .legal__toc ul {
    columns: 2;
  }
}
@media (max-width: 620px) {
  .legal {
    padding: 36px 0 72px;
  }
  .legal__toc ul {
    columns: 1;
  }
  .legal__table th,
  .legal__table td {
    padding-right: 10px;
    font-size: 0.86rem;
  }
}

/* ==========================================================================
   Product detail pages
   ========================================================================== */
.prodhead {
  padding: 24px 0 40px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.prodhead .crumbs {
  margin-bottom: 10px;
}
.prodhead__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 56px;
  align-items: center;
}
/* single-column variant (no product image) */
.prodhead__grid--single {
  grid-template-columns: 1fr;
}
.prodhead__grid--single > div {
  max-width: 820px;
}

/* ==========================================================================
   Compact one-screen products page
   ========================================================================== */
.prodhead--slim {
  padding: 22px 0 20px;
}
.prodhead--slim .crumbs {
  margin-bottom: 10px;
}
.prodhead__compact-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0;
}
.page-products .section.products-fit {
  padding: 28px 0 30px;
}
.pcard--row {
  display: grid;
  grid-template-columns: 168px 1fr;
}
.pcard__thumb {
  display: flex;
  align-items: flex-start;   /* cell image sits near the top of the card */
  justify-content: center;
  padding-top: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.pcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.pcard--row:hover .pcard__thumb img {
  transform: scale(1.04);
}
.pcard--row .pcard__format {
  margin-bottom: 7px;
}
.pcard--row .pcard__title {
  margin-bottom: 8px;
}
.pcard--row .pcard__body {
  padding: 14px 22px 12px;
}
.pcard--row .pcard__format {
  font-size: 0.72rem;
}
.pcard--row .pcard__title {
  font-size: 1.15rem;
  margin: 6px 0 10px;
}
.spec--compact th,
.spec--compact td {
  padding: 3px 8px 3px 0;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
}
.spec--compact th {
  width: 124px;
}
.spec--compact td {
  padding-left: 18px;
}
.pcard--row .pcard__foot {
  margin-top: 8px;
  padding-top: 12px;
}
.products-fit__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted, #6b6b6b);
}
.products-fit__note a {
  color: var(--brand);
}
.footer--slim .footer__bottom {
  padding: 14px 0;
}
@media (max-width: 780px) {
  .pcard--row {
    grid-template-columns: 120px 1fr;
  }
}
/* phones: stack image above the spec table so the table gets the full width */
@media (max-width: 560px) {
  .pcard--row {
    grid-template-columns: 1fr;
  }
  .pcard__thumb {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 0 10px;
  }
  .pcard__thumb img {
    width: auto;
    height: 190px;
    margin: 0 auto;
  }
  .pcard--row .pcard__body {
    padding: 14px 16px 12px;
  }
}
.prodhead__media {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px;
  display: grid;
  place-items: center;
}
.prodhead__media img {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
}
.prodhead h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  margin: 10px 0 12px;
}
@media (max-width: 880px) {
  .prodhead {
    padding: 48px 0;
  }
  .prodhead__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .prodhead__media {
    max-width: 300px;
  }
}

/* chart figure grid */
.figgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 20px;
}
.fig {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px;
}
.fig img {
  width: 100%;
  height: auto;
  display: block;
}
.fig figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft, #5a5551);
}
.fig figcaption b {
  color: var(--ink);
}
.fig-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft, #5a5551);
}

/* full-width spec table wrapper with horizontal scroll on phones */
.spec-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
}
