/* biocargo.eu – main stylesheet
   No inline styles anywhere (strict Content-Security-Policy, see .htaccess).
   Square corners everywhere (border-radius: 0). */

/* ---------- Fonts (self-hosted Lato, latin + latin-ext for Polish) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-400-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: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-400-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: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-700-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: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-700-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: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/lato-900-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: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/lato-900-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; }

/* ---------- Tokens ---------- */
:root {
  --lime: #8dc63f;           /* BioCargo logo green – on dark backgrounds only (8.4:1 on --ink) */
  --lime-soft: #e9f4dc;
  --green: #3d6b12;          /* links/buttons on white: 6.3:1 */
  --green-darker: #2c4f0c;
  --ink: #0f1d27;            /* header, hero, footer */
  --ink-2: #172a36;
  --ink-3: #213846;
  --heading: #12232e;
  --text: #3b4a56;
  --muted: #5d6b77;
  --on-dark: #c9d3da;
  --line: #dde4e8;
  --line-dark: rgb(255 255 255 / 0.12);
  --bg-soft: #f3f6f1;
  --white: #fff;
  --radius: 0;
  --shadow: 0 0.25rem 1.5rem rgb(15 29 39 / 0.08);
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.75rem;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 0.7em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 900; letter-spacing: -0.005em; }
h3, .h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 700; letter-spacing: 0; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-darker); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 0; }
strong { color: var(--heading); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -10rem; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--lime); color: var(--ink); font-weight: 900;
}
.skip-link:focus { inset-block-start: 1rem; color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.prose { max-width: 50rem; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li { margin-block-end: 0.5em; }
.prose li::marker { color: var(--green); }
.lead { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem); color: var(--heading); line-height: 1.6; }
.muted { color: var(--muted); font-size: 0.95rem; }

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: inherit; font-weight: 900; line-height: 1.2; text-align: center; text-decoration: none; letter-spacing: 0.01em;
  color: var(--white); background: var(--green);
  border: 2px solid var(--green); border-radius: 0;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { color: var(--white); background: var(--green-darker); border-color: var(--green-darker); }
.btn--ghost { color: var(--green); background: transparent; }
.btn--ghost:hover { color: var(--white); }
.btn--lime { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.btn--lime:hover { color: var(--ink); background: #a4d65f; border-color: #a4d65f; }
.btn--outline-light { color: var(--white); background: transparent; border-color: rgb(255 255 255 / 0.7); }
.btn--outline-light:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-block-start: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 900; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .ico { transition: translate 0.2s; }
.link-arrow:hover .ico { translate: 0.2rem 0; }

/* ---------- Top bar ---------- */
.topbar { color: var(--on-dark); background: var(--ink); border-block-end: 1px solid var(--line-dark); font-size: 0.875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.25rem 1.25rem; padding-block: 0.35rem; }
.topbar__demo { margin: 0; font-weight: 700; color: var(--lime); }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar a { display: inline-flex; align-items: center; gap: 0.4em; color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--lime); text-decoration: underline; }
.topbar .ico { color: var(--lime); }
.lang-switch { padding: 0.15rem 0.6rem; border: 1px solid rgb(255 255 255 / 0.35); font-weight: 900; letter-spacing: 0.06em; }
.lang-switch:hover { border-color: var(--lime); }
@media (max-width: 47.99rem) {
  .topbar__demo { display: none; }
  .topbar__inner { justify-content: space-between; }
  .topbar__contact li + li { display: none; }
}
@media (max-width: 22rem) { .topbar__contact { display: none; } }

/* ---------- Header + navigation (one <nav>, popover when it does not fit; see main.js) ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; color: var(--white); background: rgb(15 29 39 / 0.97); border-block-end: 1px solid var(--line-dark); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgb(15 29 39 / 0.88); backdrop-filter: blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); padding-block: 0.5rem; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { display: flex; align-items: center; }
.site-logo img { width: auto; height: clamp(2.1rem, 1.7rem + 1.4vw, 2.6rem); }

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
  font: inherit; font-weight: 900; color: var(--white); background: transparent;
  border: 2px solid rgb(255 255 255 / 0.35); border-radius: 0; cursor: pointer;
}
.menu-button:hover { border-color: var(--lime); }

.site-menu {
  position: fixed; inset: auto;
  inset-block-start: 7rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(84dvw, 22rem); max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content; max-block-size: calc(100dvh - 6rem);
  margin: 0.5rem 0 0; padding: 0.5rem; overflow: auto; list-style: none;
  color: var(--white); background: var(--ink-2); border: 1px solid var(--line-dark); border-top: 3px solid var(--lime); border-radius: 0;
  box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.35);
}
.site-menu[hidden] { display: none; }
.site-menu a { display: block; padding: 0.75rem 1rem; color: var(--white); font-weight: 700; text-decoration: none; }
.site-menu a:hover { background: var(--ink-3); color: var(--lime); }
.site-menu a[aria-current="page"] { color: var(--lime); box-shadow: inset 4px 0 0 var(--lime); }
.site-menu .site-menu__cta a { margin-block-start: 0.35rem; color: var(--ink); background: var(--lime); font-weight: 900; }
.site-menu .site-menu__cta a:hover { color: var(--ink); background: #a4d65f; }
.site-menu .site-menu__cta a[aria-current="page"] { color: var(--ink); box-shadow: none; text-decoration: underline; text-underline-offset: 0.3em; }
.site-menu::backdrop { background: rgb(15 29 39 / 0.45); }

@media (prefers-reduced-motion: no-preference) {
  .site-menu { transition: opacity 0.18s, translate 0.18s, display 0.18s, overlay 0.18s; transition-behavior: allow-discrete; }
  .site-menu:not(:popover-open) { opacity: 0; translate: 0 -0.5rem; }
  @starting-style { .site-menu:popover-open { opacity: 0; translate: 0 -0.5rem; } }
}

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 0.1rem;
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none;
  overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
  opacity: 1; translate: none; transition: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: 0.55rem 0.7rem; font-size: 0.95rem; color: var(--on-dark); }
.site-header.is-wide .site-menu a:hover { background: transparent; color: var(--white); box-shadow: inset 0 -3px 0 rgb(255 255 255 / 0.35); }
.site-header.is-wide .site-menu a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--lime); }
.site-header.is-wide .site-menu .site-menu__cta a { margin: 0 0 0 0.6rem; padding-inline: 1.1rem; color: var(--ink); }
/* the CTA keeps its lime button look on hover and as the current page (the generic
   wide-menu link rules above would otherwise make it transparent / white text) */
.site-header.is-wide .site-menu .site-menu__cta a:hover { color: var(--ink); background: #a4d65f; box-shadow: none; }
.site-header.is-wide .site-menu .site-menu__cta a[aria-current="page"] { color: var(--ink); background: var(--lime); box-shadow: none; }
.site-header.is-wide .site-menu .site-menu__cta a[aria-current="page"]:hover { background: #a4d65f; }
.is-measuring, .is-measuring * { transition: none !important; }

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { text-decoration: underline; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: grayscale(0.35); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 29 39 / 0.96) 0%, rgb(15 29 39 / 0.86) 45%, rgb(15 29 39 / 0.55) 100%),
    linear-gradient(0deg, rgb(15 29 39 / 0.9), transparent 40%);
}
/* thin technical grid over the photo */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(141 198 63 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(141 198 63 / 0.07) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { margin-block-end: 0.35em; color: var(--white); font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem); line-height: 1; }
.hero h1 .hl { color: var(--lime); }
.hero__lead { max-width: 36rem; color: var(--white); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem); font-weight: 700; line-height: 1.4; text-wrap: balance; }
.hero__text { max-width: 38rem; }
.hero .btn-row { margin-block-start: 2rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-block-end: 1.25rem;
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime);
}
.tag::before { content: ""; width: 2rem; height: 2px; background: var(--lime); }

.hero__device { position: relative; justify-self: center; width: min(100%, 24rem); margin: 0; }
.hero__device img { position: relative; width: 100%; background: #ebebea; }
/* lime corner brackets */
.hero__device::before, .hero__device::after {
  content: ""; position: absolute; z-index: 1; width: 3.5rem; height: 3.5rem; border: 3px solid var(--lime); pointer-events: none;
}
.hero__device::before { inset-block-start: -0.75rem; inset-inline-start: -0.75rem; border-inline-end: 0; border-block-end: 0; }
.hero__device::after { inset-block-end: -0.75rem; inset-inline-end: -0.75rem; border-inline-start: 0; border-block-start: 0; }
.hero__device figcaption { position: absolute; z-index: 1; inset-block-end: 1rem; inset-inline-start: 1rem; padding: 0.3rem 0.7rem; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: var(--lime); }
@media (max-width: 59.99rem) { .hero__device { width: min(100%, 19rem); } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line-dark); }
.facts li { padding: 1.25rem 1.25rem 1.5rem 0; }
.facts strong { display: block; color: var(--white); font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); font-weight: 900; line-height: 1.15; }
.facts strong span { color: var(--lime); }
.facts li > span { font-size: 0.95rem; }
@media (min-width: 48rem) { .facts li + li { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--line-dark); } }

/* ---------- Page title band (subpages) ---------- */
.page-title { position: relative; isolation: isolate; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.page-title::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(141 198 63 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(141 198 63 / 0.08) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.page-title .wrap { padding-block: clamp(2.25rem, 6vw, 4rem); border-inline-start: 0; }
.page-title h1 { color: var(--white); margin-block-end: 0.3em; }
.page-title p { max-width: 46rem; margin: 0; font-size: 1.15rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.35rem; color: var(--lime); }
.breadcrumbs a { color: var(--on-dark); }
.breadcrumbs a:hover { color: var(--lime); }
.breadcrumbs a[aria-current="page"] { color: var(--white); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--alt { background: var(--bg-soft); }
.section--dark { color: var(--on-dark); background: var(--ink); }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--white); }
.section--dark a:not(.btn) { color: var(--lime); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section__head { max-width: 48rem; margin-block-end: 2.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin-block-end: 0.75rem; color: var(--green); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--lime); }
.split { display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.25fr 0.75fr; }
}

/* Steps with photos (how it works) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; background: var(--white); border: 1px solid var(--line); }
.steps img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.steps li::before {
  content: "0" counter(step); position: absolute; inset-block-start: 0; inset-inline-start: 0;
  padding: 0.4rem 0.75rem; font-weight: 900; font-size: 1.1rem; color: var(--ink); background: var(--lime);
}
.steps h3 { margin: 0; padding: 1rem 1.25rem 0.25rem; }
.steps p { margin: 0; padding: 0 1.25rem 1.25rem; font-size: 0.97rem; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); }
.card::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: -1px; width: 3rem; height: 4px; background: var(--lime); }
.card h3 { margin-block-end: 0.5em; }
.card > :last-child { margin-block-end: 0; }
.card__num { display: block; margin-block-end: 0.75rem; color: var(--green); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.12em; }
.section--dark .card { color: var(--on-dark); background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .card__num { color: var(--lime); }

/* Parameter list (ticks) */
.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line); }
.params li { position: relative; padding: 0.95rem 1rem 0.95rem 2.4rem; border-block-end: 1px solid var(--line); font-weight: 700; color: var(--heading); }
.params li::before {
  content: ""; position: absolute; inset-inline-start: 0.2rem; inset-block-start: 1.15rem; width: 1.3rem; height: 1.3rem;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1d27' stroke-width='3.2'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.prose .params { grid-template-columns: 1fr; padding: 0; }
.prose .params li { margin: 0; font-weight: 400; }
.section--dark .params { border-color: var(--line-dark); }
.section--dark .params li { color: var(--white); border-color: var(--line-dark); }

/* Spec tables */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.spec { margin: 0; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--white); border: 1px solid var(--line); }
.spec h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; }
.spec h2::before { content: ""; width: 0.55rem; height: 1.4rem; background: var(--lime); }
.spec ul { margin: 0; padding: 0; list-style: none; }
.spec li { padding: 0.55rem 0; border-block-end: 1px solid var(--line); }
.spec li:last-child { border: 0; padding-block-end: 0; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.spec dt, .spec dd { margin: 0; padding: 0.55rem 0; border-block-end: 1px solid var(--line); }
.spec dt { padding-inline-end: 1rem; font-weight: 700; color: var(--heading); }
.spec dd { text-align: end; font-variant-numeric: tabular-nums; }
.spec dt:nth-last-of-type(1), .spec dd:last-child { border: 0; padding-block-end: 0; }
.spec .qty { float: inline-end; margin-inline-start: 1rem; font-weight: 900; color: var(--green); font-variant-numeric: tabular-nums; }

/* Device map with numbered markers (spec page) */
.device-map { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 56rem) { .device-map { grid-template-columns: 0.9fr 1.1fr; } }
.device-map__figure { position: relative; margin: 0; background: #ebebea; }
.device-map__figure img { width: 100%; }
@media (min-width: 56rem) { .device-map__figure { position: sticky; inset-block-start: calc(var(--header-h) + 1rem); } }
.marker {
  position: absolute; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; translate: -50% -50%;
  font-weight: 900; font-size: 1rem; color: var(--ink); text-decoration: none;
  background: var(--lime); border: 2px solid var(--white); box-shadow: 0 0 0 0 rgb(141 198 63 / 0.6);
}
.marker:hover, .marker:focus-visible { color: var(--white); background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .marker { animation: pulse 2.4s ease-out infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 0.9rem rgb(141 198 63 / 0); } 100% { box-shadow: 0 0 0 0 rgb(141 198 63 / 0); } }
}
.marker:nth-of-type(1) { left: 41.27%; top: 38.54%; }
.marker:nth-of-type(2) { left: 48.18%; top: 66.2%; }
.marker:nth-of-type(3) { left: 52.09%; top: 17.68%; }
.marker:nth-of-type(4) { left: 43.45%; top: 26.11%; }
.marker:nth-of-type(5) { left: 44.27%; top: 81.88%; }
.marker:nth-of-type(6) { left: 59.09%; top: 39.72%; }
.parts { counter-reset: part; margin: 0; padding: 0; list-style: none; }
.parts li { counter-increment: part; position: relative; padding: 1rem 0 1rem 3.25rem; border-block-end: 1px solid var(--line); }
.parts li::before {
  content: counter(part); position: absolute; inset-inline-start: 0; inset-block-start: 1.1rem;
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; font-weight: 900; color: var(--ink); background: var(--lime);
}
.parts li:target { background: var(--lime-soft); }
.parts h3 { margin-block-end: 0.25em; font-size: 1.15rem; }
.parts p { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ebebea; }
.gallery--landscape img { aspect-ratio: 3 / 2; }
.zoom { position: relative; display: block; cursor: zoom-in; }
.zoom::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; transition: border-color 0.2s; pointer-events: none; }
.zoom:hover::after, .zoom:focus-visible::after { border-color: var(--lime); }

/* Photo viewer (lightbox.js) – native <dialog> */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  color: var(--white); background: transparent; border: 0;
}
.lightbox::backdrop { background: rgb(10 18 24 / 0.97); }
.lightbox__figure { display: grid; place-items: center; align-content: center; gap: 0.75rem; height: 100%; margin: 0; padding: 3.75rem 4.5rem 1.25rem; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; background: #ebebea; }
.lightbox__caption { max-width: 48rem; text-align: center; font-size: 0.95rem; color: var(--on-dark); }
.lightbox__btn {
  position: fixed; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0;
  color: var(--ink); background: var(--lime); border: 0; border-radius: 0; cursor: pointer;
}
.lightbox__btn:hover { background: #a4d65f; }
.lightbox__btn .ico { width: 1.5rem; height: 1.5rem; stroke-width: 2.5; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { inset-block-start: 0.75rem; inset-inline-end: 0.75rem; }
.lightbox__prev, .lightbox__next { inset-block-start: 50%; translate: 0 -50%; }
.lightbox__prev { inset-inline-start: 0.75rem; }
.lightbox__next { inset-inline-end: 0.75rem; }
@media (max-width: 40rem) {
  .lightbox__figure { padding: 4rem 0.75rem 5rem; }
  .lightbox__prev, .lightbox__next { inset-block-start: auto; inset-block-end: 1rem; translate: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__img { animation: float-in 0.25s ease-out both; }
}

/* Video card (link to YouTube, no embed) */
.video-card { position: relative; display: block; color: var(--white); text-decoration: none; background: var(--ink); }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.8; transition: opacity 0.2s; }
.video-card:hover img { opacity: 0.6; }
.video-card__play {
  position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem;
  display: grid; place-items: center; width: 4rem; height: 4rem; color: var(--ink); background: var(--lime);
}
.video-card__play .ico { width: 1.8rem; height: 1.8rem; fill: currentColor; stroke: none; }
.video-card__caption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 0.9rem 1.1rem; font-weight: 900; background: linear-gradient(0deg, rgb(15 29 39 / 0.92), transparent); }
.video-card:hover, .video-card:focus-visible { color: var(--white); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .video-card__play { animation: pulse 2.4s ease-out infinite; }
}

/* Awards */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.award { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.award img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; background: #ebebea; }
.award__body { padding: 1.25rem 1.4rem 1.5rem; }
.award__year { display: inline-block; margin-block-end: 0.6rem; padding: 0.15rem 0.6rem; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; color: var(--ink); background: var(--lime); }
.award h3 { margin-block-end: 0.4em; }
.award p { margin: 0 0 0.75em; font-size: 0.97rem; }
.award p:last-child { margin: 0; }
.section--dark .award { color: var(--on-dark); background: var(--ink-2); border-color: var(--line-dark); }

/* Media list */
.media-list { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line); }
.media-list li { display: grid; gap: 0.25rem 2rem; padding: 1.25rem 0; border-block-end: 1px solid var(--line); }
@media (min-width: 48rem) { .media-list li { grid-template-columns: 11rem 1fr; } }
.media-list__source { font-weight: 900; color: var(--green); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.media-list h3 { margin-block-end: 0.35em; font-size: 1.15rem; }
.media-list p { margin: 0 0 0.5em; }
.media-list p:last-child { margin: 0; }

/* Stats (GUS) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line-dark); border: 1px solid var(--line-dark); }
.stats li { padding: 1.5rem 1.25rem; background: var(--ink); }
.stats strong { display: block; margin-block-end: 0.35rem; color: var(--lime); font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats strong small { font-size: 0.55em; color: var(--white); }
.stats span { font-size: 0.95rem; }

/* Price plans (rental) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(1.4rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); }
.plan--featured { border: 2px solid var(--green); }
.plan h2 { margin-block-end: 0.75rem; font-size: 1.3rem; }
.plan__price { margin: 0 0 1rem; color: var(--heading); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price small { display: block; margin-block-start: 0.4rem; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.plan dl { display: grid; grid-template-columns: 1fr auto; margin: auto 0 0; padding-block-start: 1rem; border-block-start: 1px solid var(--line); font-size: 0.95rem; }
.plan dt, .plan dd { margin: 0; padding: 0.3rem 0; }
.plan dd { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan .plan__total { color: var(--heading); font-weight: 900; }
.plan__badge { position: absolute; inset-block-start: -0.8rem; inset-inline-end: 1rem; padding: 0.2rem 0.6rem; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); background: var(--green); }
.note { margin-block-start: 1.5rem; padding: 1.1rem 1.4rem; background: var(--lime-soft); border-inline-start: 4px solid var(--green); }
.doc-links a { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; }
.note > :last-child { margin: 0; }

/* Documents (references) */
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.doc { display: flex; flex-direction: column; gap: 0.75rem; padding: clamp(1.4rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); }
.doc__type { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.doc h2, .doc h3 { margin: 0; font-size: 1.25rem; }
.doc p { margin: 0; }
.doc .btn { align-self: flex-start; margin-block-start: auto; }

/* Contact */
.contact-card { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); color: var(--on-dark); background: var(--ink); }
.contact-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 4rem; height: 4px; background: var(--lime); }
.contact-card h2 { color: var(--white); }
.contact-card strong { color: var(--white); }
.contact-card a:not(.btn) { color: var(--lime); }
.contact-card .btn { font-size: 1.05rem; white-space: normal; overflow-wrap: anywhere; }
.contact-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list .ico { margin-block-start: 0.3em; color: var(--lime); }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.person { padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); }
.person__role { display: block; margin-block-end: 0.3rem; color: var(--green); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.person h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.person ul { margin: 0; padding: 0; list-style: none; font-size: 0.97rem; }
.person li { display: flex; gap: 0.5rem; align-items: center; overflow-wrap: anywhere; }
.person .ico { color: var(--green); }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.partners li { padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); }
.partners span { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.partners strong { display: block; margin-block-start: 0.25rem; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background: var(--lime); }
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(15 29 39 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(15 29 39 / 0.07) 1px, transparent 1px);
  background-size: 3rem 3rem; mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.cta-band h2 { color: var(--ink); margin-block-end: 0.3em; }
.cta-band p { margin: 0; max-width: 40rem; font-weight: 700; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn--lime { color: var(--white); background: var(--ink); border-color: var(--ink); }
.cta-band .btn--lime:hover { background: var(--ink-3); border-color: var(--ink-3); }
.cta-band .btn--outline-light { color: var(--ink); border-color: var(--ink); }
.cta-band .btn--outline-light:hover { color: var(--lime); background: var(--ink); }
.cta-band a:not(.btn) { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { color: var(--on-dark); background: var(--ink); font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.25rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr; } }
.site-footer h2 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; margin-block-end: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-block-end: 0.5rem; }
.footer-logo { display: inline-block; margin-block-end: 1.25rem; }
.footer-logo img { width: auto; height: 2.6rem; }
.footer-patent { color: var(--lime); font-weight: 700; font-size: 0.9rem; }
.footer-docs-title { margin-block-start: 1.75rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact .ico { margin-block-start: 0.3em; color: var(--lime); }
.bottom-bar { border-block-start: 1px solid var(--line-dark); font-size: 0.875rem; }
.bottom-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.25rem; }
.bottom-bar p { margin: 0; }
.bottom-bar ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.bottom-bar li { margin: 0; }

/* ---------- 404 ---------- */
.notfound { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--ink); text-align: center; }
.notfound::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(141 198 63 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(141 198 63 / 0.08) 1px, transparent 1px);
  background-size: 3rem 3rem; mask-image: radial-gradient(circle at center, #000, transparent 70%);
}
.notfound h1, .notfound h2 { color: var(--white); }
.notfound__code {
  display: block; margin-block-end: 0.5rem;
  font-size: clamp(6rem, 4rem + 12vw, 11rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em;
  color: var(--lime);
  background: linear-gradient(120deg, var(--white), var(--lime) 55%, #5d9a1e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.notfound p { max-width: 36rem; margin-inline: auto; }
.notfound .btn-row { justify-content: center; }
.notfound a:not(.btn) { color: var(--lime); }
.notfound__links { margin-block-start: 2.5rem; }
.notfound__links h2 { font-size: 1.15rem; }
.notfound__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.notfound__links a:not(.btn) { display: inline-block; padding: 0.4rem 0.9rem; color: var(--white); text-decoration: none; font-weight: 700; border: 1px solid var(--line-dark); }
.notfound__links a:not(.btn):hover { border-color: var(--lime); color: var(--lime); }
.notfound__en { margin-block-start: 2rem; font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .notfound__code { animation: float-in 0.7s ease-out both; }
  @keyframes float-in { from { opacity: 0; translate: 0 1rem; } }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .skip-link, .hero__media { display: none !important; }
  .page-title, .hero, .section--dark, .notfound { color: #000; background: none; }
  .page-title h1, .hero h1, .section--dark h2 { color: #000; }
}
