/* ZAVN-Dobrich: light paper with the red of the firm's own logo plate at full bleed. One theme.
   Display face Prosto One (one weight), text face Onest (self-hosted, /fonts). */

@font-face {
    font-family: 'Prosto One';
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/prostoone.woff2') format('woff2');
}

@font-face {
    font-family: 'Onest';
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/onest.woff2') format('woff2');
}

:root {
    --red: #860406;
    --red-deep: #540403;
    --red-hot: #a3080a;
    --red-rgb: 134, 4, 6;
    --carbon: #08070d;
    --carbon-2: #16151c;
    --ink: #1b1a20;
    --muted: #5d5c64;
    --paper: #f6f5f2;
    --sheet: #ffffff;
    --steel: #d6d5d0;
    --steel-soft: #e9e8e3;
    --arc: #fe79a8;
    --arc-rgb: 254, 121, 168;
    --on-red: #ffffff;
    --on-red-soft: #f6d2d6;
    --display: 'Prosto One', 'Trebuchet MS', sans-serif;
    --text: 'Onest', system-ui, sans-serif;
    --wrap: 1180px;
    --gutter: 16px;
    --radius: 10px;
    --lb-bg: rgba(8, 7, 13, 0.94);
    --lb-text: #ffffff;
    --lb-accent: #fe79a8;
    --lb-accent-soft: rgba(254, 121, 168, 0.25);
}

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

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

body {
    margin: 0;
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(1.6rem, 0.6rem + 3.8vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 0.9rem + 2.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem); }
.h3 { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.55rem); }

p { margin: 0 0 1em; }

a {
    color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

a:hover { color: var(--red-hot); }

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 3px;
}

.on-red :focus-visible,
.top :focus-visible,
.foot :focus-visible {
    outline-color: var(--arc);
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--carbon);
    color: #fff;
    border-radius: 6px;
}

.skip:focus { top: 12px; }

ul.marks {
    padding-left: 1.2em;
}

ul.marks li { margin-bottom: 0.35em; }

.lead {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    line-height: 1.55;
    max-width: 62ch;
}

.prose { max-width: 70ch; }

.prose h2 { margin-top: 1.8em; }

.prose h3 { margin-top: 1.4em; }

.muted { color: var(--muted); }

/* ---- buttons ---- */

.btn,
.btn-light,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.02rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.btn:hover { background: var(--red-hot); border-color: var(--red-hot); color: #fff; }

.btn-light {
    background: #fff;
    color: var(--red-deep);
    border-color: #fff;
}

.btn-light:hover { background: var(--on-red-soft); border-color: var(--on-red-soft); color: var(--red-deep); }

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--red-deep), var(--red) 55%, #6e0405);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 24px rgba(var(--red-rgb), 0.25);
}

.top-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: 'brand . call lang' 'nav nav nav nav';
    align-items: center;
    gap: 8px 14px;
    padding: 10px 0 0;
}

.brand {
    grid-area: brand;
    display: block;
    line-height: 0;
    padding: 4px 0;
}

.brand img {
    width: 258px;
    height: auto;
}

.call {
    grid-area: call;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.02rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.call:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.lang {
    grid-area: lang;
    display: flex;
    gap: 2px;
    font-family: var(--display);
    font-weight: 400;
    font-size: 0.95rem;
}

.lang a,
.lang span {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 6px;
    color: var(--on-red-soft);
    text-decoration: none;
}

.lang span[aria-current] {
    color: var(--red-deep);
    background: #fff;
}

.lang a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

.menu-btn {
    grid-area: lang;
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-family: var(--display);
    font-weight: 400;
    cursor: pointer;
}

.nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 4px 0 0;
    padding: 4px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.nav a {
    display: inline-block;
    padding: 10px 12px 12px;
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.nav a[aria-current='page'] { border-color: var(--arc); }

@media (max-width: 760px) {
    .top-row {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: 'brand call menu' 'nav nav nav';
        gap: 8px 10px;
        padding: 8px 0;
    }

    .brand img { width: 140px; }

    .call {
        padding: 6px 10px;
        font-size: 0.88rem;
        gap: 6px;
    }

    .lang { grid-area: menu; }

    .has-menu .menu-btn { display: inline-flex; grid-area: menu; padding: 6px 10px; }

    .has-menu .menu-btn .menu-word { display: none; }

    .has-menu .lang { display: none; grid-area: nav; order: 10; margin: 0; padding: 8px 0 4px; }

    .has-menu .top-row:has(.nav.open) .lang { display: flex; }

    .has-menu .nav {
        display: none;
        flex-direction: column;
        gap: 0;
    }

    .has-menu .nav.open { display: flex; }

    .has-menu .nav a {
        padding: 12px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .has-menu .nav a[aria-current='page'] { color: var(--arc); }

    .nav { border-top: 0; margin: 0; padding: 0; }
}


/* ---- hero ---- */

.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(ellipse 60% 70% at 85% 20%, rgba(var(--arc-rgb), 0.28), transparent 70%),
        radial-gradient(ellipse 70% 60% at 10% 100%, rgba(0, 0, 0, 0.35), transparent 70%),
        linear-gradient(160deg, var(--red) 0%, #6a0304 55%, var(--red-deep) 100%);
    padding: clamp(40px, 7vw, 92px) 0 0;
    overflow: hidden;
}

.hero .wrap {
    display: grid;
    gap: 28px;
}

.hero .wrap > * { min-width: 0; }

.hero h1 {
    max-width: 16ch;
    margin-bottom: 0.3em;
}

.hero .lead {
    color: var(--on-red-soft);
    max-width: 58ch;
}

.hero-head {
    position: relative;
    z-index: 1;
}

.hero-sub {
    margin: 0 0 14px;
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--on-red-soft);
}

/* The single-line diagram: every element a product of the factory. It draws itself once when the page
   opens; under prefers-reduced-motion it is shown finished. */

.diagram {
    position: relative;
    margin-top: 12px;
    padding-bottom: 18px;
}

.diagram svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.diagram .line {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.diagram .live {
    stroke: var(--arc);
    stroke-width: 3;
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    filter: drop-shadow(0 0 6px rgba(var(--arc-rgb), 0.9));
    animation: energise 2.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.diagram .sym {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.diagram .sym-fill { fill: #fff; stroke: none; }

.diagram .plate {
    fill: rgba(84, 4, 3, 0.9);
    stroke: rgba(255, 255, 255, 0.35);
}

.diagram .mark {
    opacity: 0;
    animation: light-up 0.5s ease forwards;
}

.diagram .m1 { animation-delay: 0.8s; }
.diagram .m2 { animation-delay: 1.15s; }
.diagram .m3 { animation-delay: 1.5s; }
.diagram .m4 { animation-delay: 1.85s; }
.diagram .m5 { animation-delay: 2.2s; }
.diagram .m6 { animation-delay: 2.55s; }
.diagram .m7 { animation-delay: 2.9s; }

.diagram .mark circle.dot { fill: var(--arc); }

.diagram-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.diagram .diagram-v { display: none; }

.diagram-labels li {
    font-family: var(--display);
    font-size: clamp(0.72rem, 0.6rem + 0.5vw, 0.95rem);
    line-height: 1.25;
    text-align: center;
}

.diagram-labels a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.diagram-labels a:hover { color: var(--arc); border-color: var(--arc); }

.diagram-labels small {
    display: block;
    font-family: var(--text);
    color: var(--on-red-soft);
    font-size: 0.85em;
}

@media (max-width: 700px) {
    /* The same diagram turned upright: the SVG in the left column, one label row per element. */
    .diagram {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-rows: repeat(7, 1fr);
        column-gap: 16px;
    }

    .diagram .diagram-h { display: none; }

    .diagram .diagram-v {
        display: block;
        grid-column: 1;
        grid-row: 1 / 8;
        width: 100%;
        height: auto;
    }

    .diagram-labels {
        display: contents;
    }

    .diagram-labels li {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        font-size: 0.95rem;
        padding: 6px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .diagram-labels a { align-self: flex-start; }
}

@keyframes energise {
    to { stroke-dashoffset: 0; }
}

@keyframes light-up {
    to { opacity: 1; }
}

.hero-foot {
    margin-top: clamp(26px, 4vw, 48px);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.18);
}

.hero-foot .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    font-size: 0.95rem;
    color: var(--on-red-soft);
}

.hero-foot strong {
    color: #fff;
    font-family: var(--display);
}

/* ---- sections ---- */

.band {
    padding: clamp(44px, 7vw, 96px) 0;
}

.band-tight { padding: clamp(28px, 4vw, 56px) 0; }

.band-sheet { background: var(--sheet); }

.band-carbon {
    background: linear-gradient(180deg, var(--carbon-2), var(--carbon));
    color: #fff;
}

.band-carbon a { color: var(--arc); }

.band-carbon a:hover { color: #fff; }

.band-red {
    color: #fff;
    background:
        radial-gradient(ellipse 50% 80% at 100% 50%, rgba(var(--arc-rgb), 0.22), transparent 70%),
        linear-gradient(120deg, var(--red-deep), var(--red));
}

.band-red a { color: #fff; }

.band-red a.btn-light { color: var(--red-deep); }

.band-red a.btn-light:hover { color: var(--red-deep); }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 32px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head h2 { margin: 0; }

.section-head p {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
}

.band-carbon .section-head p,
.band-red .section-head p { color: var(--on-red-soft); }

.rule-red {
    display: block;
    width: 64px;
    height: 5px;
    margin-bottom: 18px;
    background: var(--red);
    border-radius: 3px;
}

.band-red .rule-red,
.band-carbon .rule-red { background: var(--arc); }

/* ---- product index: a datasheet, the voltage figure beside each product ---- */

.sheet {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--carbon);
}

.sheet li {
    border-bottom: 1px solid var(--steel);
}

.sheet a {
    display: grid;
    grid-template-columns: minmax(96px, 150px) 1fr auto;
    align-items: center;
    gap: 6px 20px;
    padding: 18px 8px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sheet a:hover { background: var(--sheet); }

.sheet a:hover .sheet-name { color: var(--red); }

.sheet-kv {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
    line-height: 1.1;
    color: var(--red);
    letter-spacing: -0.02em;
}

.sheet-kv small {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.sheet-name {
    display: block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
    line-height: 1.2;
    transition: color 0.2s ease;
}

.sheet-sub {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.95rem;
}

.sheet-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--steel);
    display: grid;
    place-items: center;
    color: var(--red);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sheet a:hover .sheet-arrow { border-color: var(--red); background: var(--red); color: #fff; }

@media (min-width: 900px) {
    .sheet {
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
    }
}

@media (max-width: 520px) {
    .sheet a {
        grid-template-columns: 1fr auto;
        padding: 16px 4px;
    }

    .sheet-kv { grid-column: 1 / -1; }
}

/* ---- photo strip: the five slideshow photos of the old home page, at their own size ---- */

.strip {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 4px 4px 14px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--steel) transparent;
}

.strip li {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.strip a { display: block; line-height: 0; }

.strip img {
    width: min(449px, 78vw);
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.strip figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ---- the factory in figures ---- */

.figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.figures li {
    padding-top: 14px;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
}

.figures strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.figures strong small {
    font-size: 0.45em;
    letter-spacing: 0;
    color: var(--arc);
}

.figures span {
    display: block;
    margin-top: 8px;
    color: #cfced6;
    font-size: 0.95rem;
}

.duo {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

@media (min-width: 860px) {
    .duo { grid-template-columns: 1.1fr 1fr; }

    .duo-even { grid-template-columns: 1fr 1fr; }
}

.photo-set {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.photo-set a { display: block; line-height: 0; }

.photo-set img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.photo-set .wide { grid-column: 1 / -1; }

/* ---- laboratories: two columns with a red rule ---- */

.labs {
    display: grid;
    gap: 28px;
}

@media (min-width: 800px) {
    .labs { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.lab {
    padding-left: 22px;
    border-left: 5px solid var(--red);
}

.lab h3 { margin-top: 0; }

.lab .tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--steel-soft);
    color: var(--ink);
    font-size: 0.86rem;
}

/* ---- clients ---- */

.clients {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clients li {
    padding: 8px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.05rem, 1rem + 0.6vw, 1.5rem);
    line-height: 1.2;
    color: #fff;
}

.clients li:last-child { border-right: 0; }

/* ---- documents: a carousel. The strip is swiped, scrolled or moved with the keyboard, and every scan
   opens at full size. /js/carousel.js adds the arrows and the markers and the scrollbar is then hidden;
   without the script the scrollbar stays. ---- */

.doc-list {
    display: flex;
    gap: clamp(16px, 2.4vw, 26px);
    margin: 0 -4px;
    padding: 4px 4px 16px;
    overflow-x: auto;
    list-style: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-color: var(--steel) transparent;
    scrollbar-width: thin;
}

.doc-list:focus-visible { outline-offset: -3px; }

.doc-list > li {
    flex: 0 0 min(78%, 330px);
    scroll-snap-align: start;
}

.doc-list a.scan { display: block; line-height: 0; }

.doc-list img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--steel);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.doc-list p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.doc-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-family: var(--display);
}

.doc-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.doc-files {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--steel);
}

.doc-files li { border-bottom: 1px solid var(--steel); }

.doc-files a {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px 4px;
    color: var(--ink);
    text-decoration: none;
}

.doc-files a:hover .doc-title { color: var(--red); text-decoration: underline; }

.doc-pdf {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-weight: 400;
    font-size: 0.75rem;
}

.doc-title { display: block; font-weight: 600; }

.doc-meta {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
    .doc-list { scroll-behavior: smooth; }
}

.has-carousel-controls { position: relative; }

.has-carousel-controls > :first-child {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 14px;
    padding-right: 110px;
}

.has-carousel-controls > .doc-list {
    padding-bottom: 4px;
    scrollbar-width: none;
}

.has-carousel-controls > .doc-list::-webkit-scrollbar { display: none; }

.carousel-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--steel);
    border-radius: 50%;
    background: var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23860406' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.carousel-prev { rotate: 180deg; }

.carousel-arrow:hover { border-color: var(--red); }

.carousel-arrow[aria-disabled='true'] { opacity: 0.35; cursor: default; }

.carousel-markers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.carousel-marker {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--steel);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-marker[aria-current='true'] { background: var(--red); transform: scale(1.25); }

/* ---- EU notice ---- */

.eu {
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--steel);
    border-radius: var(--radius);
    background: var(--sheet);
}

.eu-emblems {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

.eu-emblems img { height: auto; }

.eu-emblems .eu-flag { width: min(311px, 100%); }

.eu-emblems .eu-op { width: min(300px, 100%); }

.eu h3 { margin-top: 0; }

.eu dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 18px;
    margin: 0;
}

.eu dt { color: var(--muted); }

.eu dd { margin: 0; }

@media (max-width: 560px) {
    .eu dl { grid-template-columns: 1fr; gap: 2px; }

    .eu dd { margin-bottom: 8px; }
}

/* ---- contact band ---- */

.contact-band .wrap {
    display: grid;
    gap: 24px 48px;
    align-items: center;
}

@media (min-width: 860px) {
    .contact-band .wrap { grid-template-columns: 1.2fr 1fr; }
}

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.band-red .big-phone { color: #fff; }

.band-red .big-phone:hover { color: var(--arc); }

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.contact-list dt {
    font-size: 0.86rem;
    color: var(--muted);
}

.band-red .contact-list dt { color: var(--on-red-soft); }

.contact-list dd {
    margin: 0;
    font-size: 1.05rem;
}

/* ---- inner pages ---- */

.page-hero {
    color: #fff;
    background:
        radial-gradient(ellipse 50% 90% at 100% 0%, rgba(var(--arc-rgb), 0.22), transparent 70%),
        linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    padding: clamp(36px, 6vw, 72px) 0;
}

.page-hero h1 { margin-bottom: 0.3em; max-width: 22ch; overflow-wrap: anywhere; }

.hero h1 { overflow-wrap: anywhere; }

.page-hero .lead { color: var(--on-red-soft); margin: 0; }

.page-hero .kicker {
    display: block;
    margin-bottom: 14px;
    font-family: var(--display);
    font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem);
    color: var(--arc);
    letter-spacing: -0.01em;
}

.page-hero .kicker small {
    font-size: 0.5em;
    color: var(--on-red-soft);
    letter-spacing: 0.06em;
}

.crumbs {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 0.92rem;
    color: var(--on-red-soft);
}

.crumbs a { color: #fff; }

/* ---- product page ---- */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
}

.product > * { min-width: 0; }

.duo > * { min-width: 0; }

@media (min-width: 900px) {
    .product { grid-template-columns: minmax(0, 1fr) 320px; }
}

.product-aside {
    display: grid;
    gap: 20px;
    align-content: start;
}

.product-aside .card { position: sticky; top: 140px; }

.card {
    padding: clamp(18px, 2.6vw, 28px);
    border: 1px solid var(--steel);
    border-radius: var(--radius);
    background: var(--sheet);
}

.card h2,
.card h3 { margin-top: 0; }

.card h2 { font-size: 1.4rem; }

.conditions {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conditions li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--steel);
}

.conditions strong {
    font-family: var(--display);
    color: var(--red);
    text-align: right;
}

@media (max-width: 560px) {
    .conditions li { grid-template-columns: 1fr; gap: 2px; }

    .conditions strong { text-align: left; }
}

.table-scroll {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--steel);
    border-radius: var(--radius);
    background: var(--sheet);
}

table.spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

table.spec caption {
    padding: 12px 14px;
    text-align: left;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--ink);
    border-bottom: 2px solid var(--carbon);
}

table.spec th,
table.spec td {
    padding: 9px 14px;
    text-align: left;
    border-bottom: 1px solid var(--steel);
    vertical-align: top;
}

table.spec thead th {
    background: var(--paper);
    font-weight: 600;
    white-space: nowrap;
}

table.spec tbody th {
    font-family: var(--display);
    color: var(--red);
    white-space: nowrap;
}

table.spec tbody tr:last-child td,
table.spec tbody tr:last-child th { border-bottom: 0; }

.types {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.types li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--steel);
}

.types strong {
    font-family: var(--display);
    color: var(--red);
}

@media (max-width: 480px) {
    .types li { grid-template-columns: 1fr; gap: 2px; }
}

.others {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.others a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--steel);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.others a:hover { color: var(--red); }

.others small {
    display: block;
    font-weight: 400;
    color: var(--muted);
}

figure {
    margin: 0;
}

figure a { display: block; line-height: 0; }

figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery figure a { display: block; line-height: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }

.gallery img { width: 100%; height: 100%; object-fit: cover; }

.gallery .portrait a { aspect-ratio: 4 / 3; }

/* ---- forms ---- */

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-form input:not([type='hidden']),
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--steel);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 1px;
    border-color: var(--red);
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 1.2em;
    color: var(--red);
    font-size: 0.9rem;
}

.form-hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-sent {
    padding: 14px 18px;
    margin-bottom: 18px;
    border-left: 5px solid var(--red);
    background: var(--sheet);
    border-radius: 6px;
}

.contact-sent strong { display: block; }

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

.person a { display: block; line-height: 0; flex: 0 0 auto; }

.person img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}

/* ---- footer ---- */

.foot {
    background: linear-gradient(180deg, var(--carbon-2), var(--carbon));
    color: #d8d7df;
    padding: clamp(40px, 6vw, 72px) 0 24px;
}

.foot a { color: #fff; }

.foot a:hover { color: var(--arc); }

.foot h2 {
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--arc);
    margin-bottom: 12px;
}

.foot-grid {
    display: grid;
    gap: 32px 40px;
}

@media (min-width: 720px) {
    .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

.foot-firm img {
    width: 230px;
    height: auto;
    margin-bottom: 14px;
}

.foot-firm p { max-width: 36ch; }

.foot address { font-style: normal; line-height: 1.6; }

.foot-phone {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.15rem;
    text-decoration: none;
}

.foot-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.93rem;
    line-height: 1.5;
}

.foot-list li { margin-bottom: 6px; }

.foot-list a { text-decoration: none; }

.foot-list a:hover { text-decoration: underline; }

.foot-bottom {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    color: #a9a8b2;
}

.foot-bottom p { margin: 0; }

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px var(--gutter);
    color: #fff;
    background: linear-gradient(160deg, var(--red), var(--red-deep));
}

.not-found > div { max-width: 60ch; }

.not-found img { width: 300px; height: auto; margin-bottom: 28px; }

.not-found a { color: #fff; }

.not-found h2 { margin-top: 1.5em; }

/* ---- motion ---- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-delay: 0s !important;
        transition-duration: 0.001s !important;
    }

    .diagram .live { stroke-dashoffset: 0; }

    .diagram .mark { opacity: 1; }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}
