/* Medical Electronic – site styles (design: redesign_variants/variant1.png) */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-900: #061943;
  --navy-800: #0b2a5b;
  --ink: #1b2742;
  --muted: #4a5875;
  --blue-600: #1767d1;
  --blue-500: #1e7ef0;
  --blue-400: #3d8ff2;
  --sky-50: #f4f9fe;
  --sky-100: #e3f3fd;
  --sky-200: #d3eafa;
  --line: #d6e3f0;
  --line-strong: #b9d3ec;
  --white: #ffffff;
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --container: 1360px;
  --gutter: clamp(16px, 4vw, 64px);
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: var(--blue-600); text-underline-offset: 0.18em; }
a:hover { color: var(--navy-800); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy-800); margin-top: 1.6em; }

p, ul, ol, dl, figure { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: var(--white); }

/* Header ----------------------------------------------------------------- */

.site-header {
  /* Logo size; the background line is positioned from it so it meets the pulse baseline. */
  --brand-size: clamp(1.15rem, 4.3vw, 4rem);
  /* Pulse baseline sits this far below the logo's vertical centre (see .brand__pulse viewBox). */
  --pulse-baseline: calc(0.079 * var(--brand-size));
  position: relative;
  overflow: hidden;
  height: clamp(132px, 17vw, 300px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
    linear-gradient(90deg, #e5f4fd 0%, #e0f2fe 55%, #d3e9f9 100%);
}

/* Thin line running the full width, on the same baseline as the logo pulse. */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + var(--pulse-baseline) - 0.8px);
  height: 1.6px;
  background: #5fb0f3;
  opacity: 0.65;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header__photo {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  height: 100%;
  aspect-ratio: 502 / 307;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
.site-header__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--brand-size);
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--navy-800);
  text-decoration: none;
  /* Keep the logo legible over the light end of the photo. */
  text-shadow: 0 0 18px rgba(227, 243, 253, 0.9);
}
.brand:hover { color: var(--navy-800); }
.brand { position: relative; }

/* Faint echo of the pulse on the header line, just after the word ELECTRONIC. */
.brand__echo {
  position: absolute;
  left: calc(100% + 0.35em);
  top: calc(50% + 0.079em - 0.6em);
  width: 1.7em;
  height: 1.2em;
  fill: none;
  stroke: #5fb0f3;
  stroke-width: 1.6px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.65;
}
.brand__echo path { vector-effect: non-scaling-stroke; }
@media (max-width: 640px) {
  /* Centered logo, shrunk to fit the narrowest phones (the logo is ~14.4em wide). */
  .site-header { --brand-size: min(1.6rem, calc((100vw - 32px) / 14.4)); }
  .site-header__inner { justify-content: center; }
  .site-header__photo, .brand__echo { display: none; }
}
/* Taller than the letters, as in the design: the wave overlaps the text height. */
.brand__pulse {
  flex: none;
  width: 3.24em;
  height: 2.14em;
  margin: -0.6em 0.02em;
  overflow: visible;
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 9;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Navigation ------------------------------------------------------------- */

.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav__menu { flex-wrap: wrap; gap: 0 clamp(4px, 3vw, 56px); margin-left: -16px; }
.site-nav__menu a {
  position: relative;
  display: block;
  padding: 18px 16px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
}
.site-nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}
.site-nav__menu a:hover { color: var(--blue-600); }
.site-nav__menu a.is-active { color: var(--blue-600); font-weight: 600; }
.site-nav__menu a.is-active::after { background: var(--blue-500); }

.site-nav__lang { align-items: center; gap: 4px; font-size: 0.9rem; }
.site-nav__lang a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.site-nav__lang a:hover { color: var(--blue-600); background: var(--sky-50); }
.site-nav__lang a[aria-current] { color: var(--navy-900); background: var(--sky-100); }

/* Layout ----------------------------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(40px, 5vw, 64px);
}

.content {
  min-width: 0;
  padding-right: clamp(32px, 5vw, 72px);
  outline: none;
}

.sidebar {
  padding-left: clamp(32px, 4vw, 56px);
  border-left: 1px solid var(--line-strong);
}
.sidebar > * + * { margin-top: 40px; }

@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .content { padding-right: 0; }
  .sidebar {
    margin-top: 40px;
    padding: 32px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 640px) {
  .site-nav__inner { flex-direction: column; gap: 0; }
  .site-nav__menu { gap: 0; margin-left: -10px; }
  .site-nav__menu a { padding: 14px 10px; }
  .site-nav__lang { padding-bottom: 10px; margin-left: -8px; }
}

/* Breadcrumb, headings, prose -------------------------------------------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-600); }

.intro h1 {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 0.6em;
}
.intro h1 span { display: block; color: var(--blue-600); }
.intro p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 40em; color: var(--ink); }

.lead p { font-size: 1.15rem; max-width: 42em; }

.section-title { margin-top: 2.4em; font-size: 1.3rem; }
.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--blue-600); }

.prose h2 {
  margin-top: 2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.25em; }
.prose li::marker { color: var(--blue-500); }

.media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin: 1.2em 0 1.6em;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.media img { display: block; max-height: 420px; width: auto; }
.media--gallery img { max-height: 360px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}
.specs td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.specs tr:nth-child(odd) td { background: var(--sky-50); }
.specs td:first-child { font-weight: 600; color: var(--navy-800); min-width: 10em; }

.toc {
  margin: 0 0 2em;
  padding: 18px 22px;
  background: var(--sky-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc__title { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 8px; }
.toc ul { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }

/* Cards ------------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 18px;
  margin: 1.6em 0 2em;
  padding: 0;
  list-style: none;
}
.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-900);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card__link:hover {
  border-color: var(--blue-400);
  box-shadow: 0 6px 20px rgba(11, 42, 91, 0.08);
  color: var(--navy-900);
}
.card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: var(--white);
}
.card__media img { max-height: 150px; width: auto; object-fit: contain; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.card__summary { margin-top: 4px; font-size: 0.92rem; color: var(--muted); }

.others__title { font-size: 1.1rem; margin-top: 0.5em; }
.others__list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.others__list li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-50);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

/* Sidebar ---------------------------------------------------------------- */

.sidebar__title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin-bottom: 0.9em; }
.sidebar__title--small { font-size: 1.15rem; margin-bottom: 0.6em; }
.sidebar__title a { color: inherit; text-decoration: none; }
.sidebar__title a:hover { color: var(--blue-600); }

.section-nav ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.section-nav a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.section-nav a:hover { color: var(--blue-600); }
.section-nav a[aria-current] { border-left-color: var(--blue-500); color: var(--blue-600); font-weight: 600; }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  margin-bottom: 30px;
}
.contact-list__icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.contact-list__label { font-weight: 600; font-size: 1.1rem; color: var(--blue-600); }
.contact-list__value { font-size: 1.15rem; color: var(--navy-900); text-decoration: none; }
a.contact-list__value:hover { color: var(--blue-600); text-decoration: underline; }

/* Contact page ----------------------------------------------------------- */

.contact-page { max-width: 640px; margin-top: 1.4em; }
.company-data { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.company-data h2 { font-size: 1.2rem; }
.company-data dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.company-data dt { font-weight: 600; color: var(--navy-800); }
.company-data dd { margin: 0; }

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--navy-800); color: var(--white); }

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 18px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer__legal { margin-top: 2px; font-size: 0.82rem; }


@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header__photo, .site-nav, .sidebar, .toc { display: none; }
  .layout { display: block; }
}

.specs th {
  padding: 8px 12px;
  border-bottom: 2px solid var(--line-strong);
  text-align: left;
  font-weight: 600;
  color: var(--navy-800);
}
.specs th[scope="rowgroup"] {
  padding-top: 16px;
  border-bottom-width: 1px;
  background: var(--white);
  color: var(--blue-600);
}
.specs tbody tr:has(th) + tr td { background: var(--white); }

.layout--single { grid-template-columns: minmax(0, 1fr); }
.layout--single .content { padding-right: 0; }
