:root {
    color-scheme: light;
    /* Keep breakpoint tokens aligned with the literal @media values. */
    --bp-md: 768px;
    --bp-lg: 1024px;
    /* Where the header switches from the menu button to the desktop menu;
       js/main.js reads it. Russian uses 1150px (see its header rules). */
    --bp-nav: 1024px;
    --header-height: 61px;
    --color-primary: #001E61;
    --color-secondary: #FF6B00;
    /* The brand orange darkened for text: 5.39:1 on white, 4.90:1 on --color-light. */
    --color-secondary-text: #B34A00;
    /* The brand orange for large display text: 3.42:1 on white, above the 3:1
       large-text minimum (#FF6B00 is 2.86:1). */
    --color-secondary-large: #E86100;
    /* The brand orange as a surface under white text: 4.67:1 (white on #FF6B00
       is 2.86:1, below the 4.5:1 body-text minimum). */
    --color-secondary-surface: #C45000;
    --color-text: #1B1B1B;
    --color-body: #333333;
    --color-accent: #61CE70;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-light: #F4F4F4;
    --color-navy-deep: #000033;
    --color-navy-soft: #193E68;
    --color-red: #FF0000;
    --color-yellow: #FFD800;
    --color-cyan: #00CDFF;
    --color-rose: #F2295B;
    --color-orange-bright: #FF7E00;
    --color-sand: #D9D8D6;
    --color-header-surface: #FFFFFFFA;
    --color-header-glass: #FFFFFFE0;
    --color-header-rule: #E7E7E7;
    --color-logo-rule: #E9E9E9;
    --color-footer-rule: rgb(255 255 255 / 19%);
    --color-shadow: rgb(0 0 0 / 20%);
    --color-lightbox: #000033B5;
    --color-lightbox-ink: rgb(237 237 237 / 90%);
    --color-gallery-overlay: #00003380;
    --color-backdrop: rgb(0 0 0 / 55%);
    --color-switch-off: #8C8C8C;
    --color-table-border: hsl(0 0% 50% / 50.2%);
    /* Theme roles: components use these where white, navy or black stand for the
       page surface or its ink, so [data-theme="dark"] only overrides tokens. */
    --color-surface: var(--color-white);
    --color-surface-raised: var(--color-white);
    --color-heading: var(--color-primary);
    --color-ink-strong: var(--color-black);
    --color-link-strong: var(--color-navy-deep);
    --color-focus: var(--color-primary);
    /* The navy strokes of the service pictograms (currentColor in icons.svg). */
    --color-icon-ink: var(--color-navy-soft);
    /* Client logos are drawn for white; the dark theme sets them on a light plate. */
    --color-logo-plate: transparent;
    /* Brand navy at 50% on white (#808EB0): 3.28:1, above the 3:1 non-text minimum. */
    --color-control-border: rgb(0 30 97 / 50%);
    --color-control-ink: #1F2124;
    /* The chosen segment of a segmented control (mobile menu language and theme). */
    --color-segment-thumb: var(--color-white);
    --shadow-segment-thumb: 0 1px 3px rgb(0 0 0 / 12%), 0 0 0 0.5px rgb(0 0 0 / 6%);
    /* Preserve the display font fallback: Gemunu Libre has no Cyrillic glyphs. */
    --font-body: "Montserrat", sans-serif;
    --font-display: "Gemunu Libre";
    --fs-xs: 12px;
    --fs-meta: 13px;
    --fs-small: 14px;
    --fs-base: 16px;
    --lh-base: 1.4em;
    --fs-lead: 1.1em;
    --fs-button: clamp(0.9375rem, 0.9167rem + 0.1042vw, 1rem);
    --fs-card-subtitle: 18px;
    --fs-label: 14px;
    --fs-h4: 1.4em;
    --fs-h3: 1.7em;
    --fs-h2: 1.8em;
    --fs-h1: 2.4em;
    --fs-page-title: 2em;
    --fs-project-title: 1.6em;
    --fs-icon-lightbox: 25px;
    --space-1: 5px;
    --space-2: 10px;
    --space-3: 15px;
    --space-4: 20px;
    --space-5: 25px;
    --space-6: 30px;
    --space-7: 40px;
    --space-8: 50px;
    --space-9: 60px;
    --space-10: 80px;
    --space-11: 100px;
    --space-12: 120px;
    --space-13: 150px;
    --radius-tile: 10px;
    --radius-card: 20px;
    --radius-pill: 50px;
    --radius-dialog: 14px;
    --radius-control: 8px;
    --shadow-header: 0 0 10px 0 var(--color-shadow);
    --shadow-dropdown: 0 10px 5px 0 rgb(0 0 0 / 10%);
    --shadow-card: 0 0 5px 0 rgb(0 0 0 / 10%);
    --shadow-card-hover: 0 0 10px 0 rgb(0 0 0 / 35%);
    --shadow-tile-hover: 0 0 10px 0 rgb(0 0 0 / 15%);
    --shadow-text-soft: 1px 1px 2px rgb(0 0 0 / 24%);
    --shadow-overlay: 0 24px 64px -24px rgb(0 0 0 / 30%), 0 2px 6px rgb(0 0 0 / 6%);
    --shadow-dialog: 0 0 0 1px var(--color-header-rule), var(--shadow-overlay);
    --shadow-knob: 0 1px 3px rgb(0 0 0 / 25%);
    --z-behind: -1;
    --z-footer-bar: 1;
    --z-footer: 2;
    --z-raised: 3;
    --z-content: 10;
    --z-sticky-card: 20;
    --z-mobile-overlay: 97;
    --z-mobile-menu: 98;
    --z-header: 99;
    --z-dropdown: 9997;
    --z-consent: 10000;
    --z-skip: 10001;
    --wrap: 1200px;
    /* One frame for the whole site: the header and every content container
       share these side margins (5% of the layout viewport, set by js/main.js)
       and the 1200px width, so their edges line up at every size. */
    --wrap-pad: calc(var(--layout-inline-size, 100vw) * 0.05);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur-out: 0.18s;
    /* Scroll reveal: an even deceleration (half the rise in about 290ms of 1.4s)
       instead of a snap, and a stagger long enough to read as a sequence. */
    --ease-reveal: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-reveal: 1.4s;
    --reveal-shift: 2.5rem;
    --stagger: 140ms;
    --control-size: 2.75rem;
    --control-size-compact: 1.75rem;
    --control-size-compact-dialog: 2rem;
    --switch-width: 2.75rem;
    --switch-height: 1.5rem;
    --switch-inset: 0.125rem;
    --dialog-width: 33rem;
    --fs-caption: clamp(0.71875rem, 0.7083rem + 0.0521vw, 0.75rem);
    --fs-caption-lg: clamp(0.8125rem, 0.7917rem + 0.1042vw, 0.875rem);
}
@media (min-width: 768px) {
    :root {
        --header-height: 70px;
    }
}
@media (min-width: 1024px) {
    :root {
        --header-height: 75px;
    }
}
/* Dark theme, set on <html> by js/theme-init.js (stored choice or device setting).
   Navy-tinted surfaces keep the brand; contrast on --color-surface (#0B1226):
   text 15.6:1, body 10.2:1, headings 12.7:1, brand orange 6.5:1, focus 8.7:1. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --color-surface: #0B1226;
    --color-surface-raised: #121B33;
    --color-light: #18233F;
    --color-sand: #121B33;
    --color-text: #E8EBF2;
    --color-body: #B8C0D2;
    --color-heading: #C7D4FF;
    --color-ink-strong: #FFFFFF;
    --color-link-strong: #C7D4FF;
    --color-icon-ink: #AFC2EE;
    --color-logo-plate: #EEF1F6;
    --color-focus: #8FB0FF;
    --color-secondary-text: var(--color-secondary);
    --color-secondary-large: var(--color-secondary);
    --color-header-surface: #0B1226FA;
    --color-header-glass: #0B1226E0;
    --color-header-rule: #24304D;
    --color-logo-rule: #24304D;
    /* 3.2:1 on the raised surface, above the 3:1 non-text minimum. */
    --color-switch-off: #6B7594;
    --color-table-border: hsl(225 30% 60% / 40%);
    --color-control-border: rgb(199 212 255 / 45%);
    --color-control-ink: #E8EBF2;
    /* Lighter than the #18233F track; heading ink on it is 7.5:1. */
    --color-segment-thumb: #2B3A63;
    --shadow-segment-thumb: 0 1px 3px rgb(0 0 0 / 40%);
    --color-shadow: rgb(0 0 0 / 50%);
    /* Shadows barely show on dark surfaces; a hairline edge separates cards instead. */
    --shadow-dropdown: 0 12px 24px 0 rgb(0 0 0 / 45%);
    --shadow-card: 0 0 0 1px var(--color-header-rule);
    --shadow-card-hover: 0 0 0 1px #34416A, 0 10px 28px rgb(0 0 0 / 50%);
    --shadow-tile-hover: 0 0 0 1px #34416A, 0 6px 18px rgb(0 0 0 / 40%);
}
@font-face {
    font-display: swap;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    src: url("../assets/fonts/montserrat/montserrat-v26-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    src: url("../assets/fonts/montserrat/montserrat-v26-cyrillic_cyrillic-ext_latin_latin-ext-600.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 500;
    src: url("../assets/fonts/montserrat/montserrat-v29-cyrillic_cyrillic-ext_latin_latin-ext-500.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 800;
    src: url("../assets/fonts/montserrat/montserrat-v26-cyrillic_cyrillic-ext_latin_latin-ext-800.woff2") format("woff2");
}
@font-face {
    font-display: swap;
    font-family: "Gemunu Libre";
    font-style: normal;
    font-weight: 800;
    src: url("../assets/fonts/gemunu-libre/gemunu-libre-v14-latin_latin-ext-800.woff2") format("woff2");
}
/* Phosphor Bold 2.1 (MIT, LICENSE beside the font), subset to the glyphs the .ph-* rules use. */
@font-face {
    font-display: block;
    font-family: "Phosphor-Bold";
    font-style: normal;
    font-weight: normal;
    src: url("../assets/icons/phosphor/Phosphor-Bold-subset.woff2?v=f6b7281b6b") format("woff2");
    unicode-range: U+E000-F8FF;
}
/* Regular weight for the system card arrow (U+E06C) and the theme icons (half
   circle, moon, sun): one step lighter than the Bold icons elsewhere. Same
   source package (@phosphor-icons/web, MIT). */
@font-face {
    font-display: block;
    font-family: "Phosphor-Regular";
    font-style: normal;
    font-weight: normal;
    src: url("../assets/icons/phosphor/Phosphor-Regular-subset.woff2?v=9d703a27c1") format("woff2");
    unicode-range: U+E06C, U+E18C, U+E330, U+E472;
}
*, *::before, *::after {
    box-sizing: border-box;
}
/* js/main.js sets this for the frame in which the theme changes, so colours
   switch at once instead of running their hover transitions. */
.is-theme-switching,
.is-theme-switching *,
.is-theme-switching *::before,
.is-theme-switching *::after {
    transition: none !important;
}
html {
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    line-height: 1.15;
}
body {
    margin: 0;
    background-color: var(--color-surface);
    color: var(--color-body);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: var(--lh-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body:has(dialog[open]) {
    overflow: hidden;
}
/* Scroll gestures inside a modal or over its backdrop do not reach the page. */
dialog:modal {
    overscroll-behavior: contain;
}
dialog::backdrop {
    overflow: hidden;
    overscroll-behavior: contain;
}
/* Same-origin page navigations cross-fade; reduced motion keeps the instant swap. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}
[hidden] {
    display: none !important;
}
h1, h2, h3, h4, h5, h6 {
    margin-block: 0.5rem 1rem;
    color: var(--color-heading);
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    text-wrap: balance;
}
h1 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 500;
}
h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 700;
    text-transform: uppercase;
}
h3 {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: 700;
    text-transform: uppercase;
}
h4 {
    font-size: var(--fs-h4);
    font-weight: 700;
}
h5 {
    font-size: 1.25rem;
}
h6 {
    font-size: 1rem;
}
p {
    margin-block: 0 0.9rem;
}
p, li {
    text-wrap: pretty;
}
a {
    background-color: transparent;
    color: var(--color-secondary);
    text-decoration: none;
}
a:hover, a:active {
    color: var(--color-secondary);
}
a:not([href]):not([tabindex]), a:not([href]):not([tabindex]):hover {
    color: inherit;
    text-decoration: none;
}
b, strong {
    font-weight: bolder;
}
small {
    font-size: 80%;
}
sub, sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}
sub {
    bottom: -0.25em;
}
sup {
    top: -0.5em;
}
img {
    max-width: 100%;
    height: auto;
    border-style: none;
}
figure {
    margin: 0;
}
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}
details {
    display: block;
}
summary {
    display: list-item;
}
dd, dl, dt, li, ol, ul {
    margin-block: 0;
}
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}
button, input {
    overflow: visible;
}
button, select {
    text-transform: none;
}
textarea {
    overflow: auto;
    resize: vertical;
}
table {
    width: 100%;
    margin-block-end: var(--space-3);
    font-size: 0.9em;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: transparent;
}
table td, table th {
    padding: var(--space-3);
    border: 1px solid var(--color-table-border);
    line-height: 1.5;
    vertical-align: top;
}
:is([tabindex]:not([tabindex="-1"]), a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}
:is([tabindex]:not([tabindex="-1"]), a, button, input, select, textarea):focus:not(:focus-visible) {
    outline: none;
}
/* WebKit also rings icon buttons that receive focus from a tap or from script
   after a tap. js/main.js marks the last input on <html>; a tap leaves them clean. */
:root[data-input="pointer"] :is(.site-header__toggle, .icon-button):focus-visible {
    outline: none;
}
/* Layout */
.container {
    width: 100%;
    max-inline-size: calc(var(--wrap) + 2 * var(--wrap-pad));
    margin-inline: auto;
    padding-inline: var(--wrap-pad);
}
.site-main {
    position: relative;
    z-index: var(--z-content);
    display: block;
    background-color: var(--color-surface);
}
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
    vertical-align: middle;
}
/* Icons: <i class="ph ph-name" aria-hidden="true"></i>; the glyph scales with font-size. */
.ph {
    display: inline-block;
    flex: none;
    font-family: "Phosphor-Bold" !important;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-transform: none;
    vertical-align: middle;
    speak: never;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Phosphor draws its glyphs about 0.12em above the box centre; moving the glyph
       itself keeps rotated icons centred too. */
    &::before {
        display: inline-block;
        translate: 0 0.12em;
    }
}
.ph-arrow-right::before { content: "\e06c"; }
.ph-circle-half::before { content: "\e18c"; }
.ph-caret-left::before { content: "\e138"; }
.ph-caret-right::before { content: "\e13a"; }
.ph-corners-in::before { content: "\e1ce"; }
.ph-corners-out::before { content: "\e1d0"; }
.ph-download-simple::before { content: "\e20c"; }
.ph-list::before { content: "\e2f0"; }
.ph-magnifying-glass-minus::before { content: "\e30e"; }
.ph-magnifying-glass-plus::before { content: "\e310"; }
.ph-moon::before { content: "\e330"; }
.ph-paper-plane-tilt::before { content: "\e398"; }
.ph-record::before { content: "\e3ee"; }
.ph-sun::before { content: "\e472"; }
.ph-x::before { content: "\e4f6"; }
.skip-link {
    position: fixed;
    z-index: var(--z-skip);
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 12px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-200%);
}
.skip-link:focus {
    transform: translateY(0);
    color: var(--color-white);
}
.u-sr-only {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.hover-shrink, .hover-grow {
    transition-duration: 0.3s;
    transition-property: transform;
}
.hover-shrink:is(:hover, :focus-visible, :active) {
    transform: scale(0.9);
}
.hover-grow:is(:hover, :focus-visible, :active) {
    transform: scale(1.1);
}
/* Buttons: primary by default, --secondary as the alternative, optional --tertiary. */
.button {
    --button-bg: var(--color-secondary);
    --button-ink: var(--color-white);
    --button-bg-hover: var(--color-primary);
    --button-ink-hover: var(--color-white);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: 0;
    border-radius: var(--radius-pill);
    background-color: var(--button-bg);
    color: var(--button-ink);
    fill: var(--button-ink);
    font-family: var(--font-body);
    font-size: var(--fs-button);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    /* Transform stays free for the scroll effects that scale a button. */
    transition: background-color 0.3s, color 0.3s, fill 0.3s;
    &:hover, &:focus-visible {
        background-color: var(--button-bg-hover);
        color: var(--button-ink-hover);
        fill: var(--button-ink-hover);
    }
}
.button--tertiary {
    --button-bg: var(--color-white);
    --button-ink: var(--color-black);
    --button-bg-hover: var(--color-white);
    --button-ink-hover: var(--color-black);
}
/* Quiet companion to the primary button over photography: same size, outline only. */
.button--ghost {
    --button-bg: transparent;
    --button-ink: var(--color-white);
    --button-bg-hover: var(--color-white);
    --button-ink-hover: var(--color-primary);
    padding: calc(var(--space-3) - 1px) calc(var(--space-6) - 1px);
    border: 1px solid rgb(255 255 255 / 60%);
    &:hover, &:focus-visible {
        border-color: var(--color-white);
    }
}
.shape {
    position: absolute;
    inset-inline: 0;
    z-index: var(--z-raised);
    overflow: hidden;
    line-height: 0;
    direction: ltr;
    pointer-events: none;
}
.shape__svg {
    display: block;
    position: relative;
    left: 50%;
    width: calc(100% + 1.3px);
    height: var(--shape-height, 30px);
    fill: var(--shape-fill, var(--color-surface));
    transform: translateX(-50%);
}
/* The -1px divider overlap hides subpixel seams. */
.shape--top {
    top: -1px;
    transform: rotate(180deg);
}
.shape--bottom {
    bottom: -1px;
    transform: rotate(180deg);
}
/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding-inline: var(--wrap-pad);
    border-block-end: 1px solid var(--color-header-rule);
    background-color: var(--color-header-surface);
    box-shadow: var(--shadow-header);
    @media (min-width: 768px) {
        border-block-end-width: 0;
    }
    /* Desktop, set by js/main.js: frosted glass once the first section has passed
       under the header (as in the WO template), hidden while scrolling down. */
    @media (min-width: 1024px) {
        transition: background-color 0.3s, translate 0.3s, box-shadow 0.3s;
        &.is-past-first {
            background-color: var(--color-header-glass);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
        }
        &.is-hidden {
            box-shadow: none;
            translate: 0 -100%;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
    @media (prefers-reduced-transparency: reduce) {
        &.is-past-first {
            background-color: var(--color-header-surface);
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
    }
}
/* Home page (as in Smile Design): the header lies over the hero and stays
   transparent at the top of the page. js/main.js sets .is-scrolled on any
   scroll; that, the open phone menu or the hovered/open systems mega menu
   brings back the surface. The language and theme menus leave the header
   transparent. Without scripting the header keeps its surface. */
.site-header--overlay {
    position: fixed;
    inset: 0 0 auto;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, translate 0.3s;
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
    @media (scripting: enabled) {
        &:not(.is-scrolled, .is-open, :has(.site-nav__item--dropdown:hover, .site-nav__disclosure[open])) {
            border-block-end-color: transparent;
            background-color: transparent;
            box-shadow: none;
            & .site-header__logo--light {
                display: none;
            }
            & .site-header__logo--dark {
                display: block;
            }
            & .site-header__toggle {
                background-color: transparent;
                color: var(--color-white);
            }
            & .site-nav__link,
            & .site-nav__trigger,
            & .header-menu__trigger {
                color: var(--color-white);
            }
            & .site-nav__trigger,
            & .header-menu__trigger {
                &:hover, &:focus-visible {
                    color: var(--color-secondary);
                }
            }
            & .header-menu[open] > .header-menu__trigger {
                color: var(--color-secondary);
            }
        }
    }
}
/* js/main.js measures this fixed probe to obtain the layout viewport width. */
.layout-probe {
    position: fixed;
    inset: 0 0 auto;
    block-size: 0;
    visibility: hidden;
    pointer-events: none;
}
/* DOM order: brand, menu toggle, navigation. Without scripting the phone menu
   wraps onto its own row below the bar. */
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-inline-size: var(--wrap);
    min-block-size: calc(var(--header-height) - 1px);
    margin-inline: auto;
    @media (min-width: 768px) {
        min-block-size: var(--header-height);
    }
}
/* The source logo column is 51% / 50% / 16% wide; the logo shrinks inside it. */
.site-header__brand {
    flex: 0 1 auto;
    max-inline-size: 51%;
    margin-inline-end: auto;
    /* Phones: the middle of the letters (not the flame) lines up with the middle
       of the menu icon. The letters fill the lower 63.65% of the 130px logo
       (30.6px tall), so their middle is 20.86px below the logo's top; the
       extra 2px meets the icon's lines as drawn on the phone. */
    padding-block-start: calc((var(--header-height) - 1px) / 2 - 20.86px + 2px);
    /* Wider: the top padding lines the letters up with the menu text. */
    @media (min-width: 768px) {
        max-inline-size: 50%;
        padding-block-start: 7px;
    }
    @media (min-width: 1024px) {
        max-inline-size: 16%;
        padding-block-start: 12px;
    }
}
.site-header__logo {
    display: block;
    inline-size: 130px;
    max-inline-size: 100%;
    block-size: auto;
    @media (min-width: 768px) {
        inline-size: 160px;
    }
    @media (min-width: 1024px) {
        inline-size: 150px;
    }
}
/* The dark theme swaps in the logo with white letters; the flame stays orange. */
.site-header__logo--dark,
:root[data-theme="dark"] .site-header__logo--light {
    display: none;
}
:root[data-theme="dark"] .site-header__logo--dark {
    display: block;
}
/* The 1% end margin keeps the source phone columns (51% + 48%). */
.site-header__toggle {
    display: none;
    place-items: center;
    align-self: center;
    inline-size: 30px;
    block-size: 30px;
    margin-inline-end: 1%;
    padding: 5px;
    border: 0;
    border-radius: 3px;
    background-color: var(--color-surface);
    color: var(--color-ink-strong);
    font-size: 20px;
    cursor: pointer;
    @media (scripting: enabled) {
        display: grid;
    }
    @media (min-width: 768px) {
        margin-inline-end: 0;
    }
    @media (min-width: 1024px) {
        display: none;
    }
}
.site-header__toggle-icon--close,
.site-header.is-open .site-header__toggle-icon--open {
    display: none;
}
.site-header.is-open .site-header__toggle-icon--close {
    display: block;
}
/* Phones and tablets: with scripting the toggle opens .mobile-menu instead;
   without it this list wraps onto its own row below the bar. */
.site-nav {
    flex: 0 0 100%;
    @media (scripting: enabled) {
        display: none;
    }
    @media (min-width: 1024px) {
        display: flex;
        flex: 1 1 0;
        align-items: center;
        justify-content: flex-end;
    }
}
/* Desktop: the menu sits centred between the logo and the language links;
   the two auto margins share the free space equally. */
.site-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
    /* Centred: the 44px language and theme triggers must not stretch the row,
       so the 20px links and the submenu caret keep the bar's centre line. */
    @media (min-width: 1024px) {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        align-items: center;
        > :first-child,
        > :not(.site-nav__item--lang) + .site-nav__item--lang {
            margin-inline-start: auto;
        }
    }
}
.site-nav__item {
    position: relative;
    &:not(:last-child) {
        border-block-end: 1px solid var(--color-light);
    }
    @media (min-width: 1024px) {
        &:not(:last-child) {
            border-block-end: 0;
        }
    }
}
/* Top-level and submenu links share the phone list look. */
.site-nav__link,
.site-nav__sublink {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px var(--space-4);
    color: var(--color-text);
    font-size: var(--fs-meta);
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    transition: 0.4s;
    &:hover, &:focus-visible, &[aria-current="page"] {
        background-color: var(--color-light);
        color: var(--color-secondary);
    }
    @media (min-width: 768px) {
        padding-block: 17px;
    }
}
.site-nav__link {
    @media (min-width: 1024px) {
        justify-content: flex-start;
        padding: 0 10px;
        color: var(--color-ink-strong);
        font-size: 14px;
        font-weight: 500;
        text-align: start;
        /* Hover underlines the text in orange, as the footer links do; the
           text keeps its colour. The current page stays orange, without an
           underline. */
        text-decoration-line: underline;
        text-decoration-color: transparent;
        text-decoration-thickness: 1px;
        text-underline-offset: calc(0.2em + 1px);
        text-decoration-skip-ink: auto;
        transition: color 0.3s, text-decoration-color 0.3s;
        &:hover, &:focus-visible, &[aria-current="page"] {
            background-color: transparent;
        }
        &:not([aria-current="page"]):is(:hover, :focus-visible) {
            color: var(--color-ink-strong);
            text-decoration-color: var(--color-secondary);
        }
    }
    /* Below 1440px the links, language and theme need tighter spacing to stay
       on one row beside the logo. */
    @media (min-width: 1024px) and (max-width: 1279px) {
        padding-inline: var(--space-1);
    }
    @media (min-width: 1280px) and (max-width: 1439px) {
        padding-inline: 8px;
    }
}
/* The parent of an open submenu keeps the highlighted look, as in the source menu. */
.site-nav__item--dropdown:has(> [open]) > .site-nav__link {
    background-color: var(--color-light);
    color: var(--color-secondary);
}
/* Desktop: the caret after the label makes room for itself in the link. */
.site-nav__item--dropdown > .site-nav__link {
    @media (min-width: 1024px) {
        padding-inline-end: 28px;
    }
}
.site-nav__item--dropdown:is(:hover, :focus-within, :has(> [open])) {
    @media (min-width: 1024px) {
        > .site-nav__link,
        .site-nav__trigger {
            background-color: transparent;
            color: var(--color-secondary);
        }
        > .site-nav__link:not([aria-current="page"]) {
            color: var(--color-ink-strong);
            text-decoration-color: var(--color-secondary);
        }
    }
}
.site-nav__flag {
    display: block;
    inline-size: 18px;
    block-size: 12px;
}
.site-nav__lang-code {
    font-size: 0.8em;
}
/* Language and theme menus after the main links: a details disclosure that a
   mouse pointer opens on hover on desktop (js/main.js); click, touch and the
   keyboard use the summary. The theme choice needs scripting. */
.site-nav__item--theme {
    @media (scripting: none) {
        display: none;
    }
}
.header-menu {
    @media (min-width: 1024px) {
        position: relative;
    }
}
.header-menu__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-block-size: 52px;
    padding-inline: var(--space-4);
    color: var(--color-text);
    font-size: var(--fs-meta);
    font-weight: 500;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
    transition: color 0.4s;
    &::-webkit-details-marker {
        display: none;
    }
    &:hover, &:focus-visible, .header-menu[open] > & {
        color: var(--color-secondary);
    }
    @media (min-width: 1024px) {
        min-block-size: var(--control-size);
        padding-inline: 10px;
        color: var(--color-ink-strong);
        font-size: 14px;
    }
    @media (min-width: 1024px) and (max-width: 1279px) {
        padding-inline: var(--space-1);
    }
}
.header-menu__chevron {
    font-size: 10px;
    transform: rotate(90deg);
    transition: transform 0.2s;
    .header-menu[open] & {
        transform: rotate(-90deg);
    }
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}
/* Theme icons in the lighter Regular weight; this overrides the Bold family
   that .ph sets with !important. */
.ph-circle-half,
.ph-moon,
.ph-sun {
    font-family: "Phosphor-Regular" !important;
}
/* The trigger shows the chosen theme: js/theme-init.js sets data-theme-pref. */
.header-menu__theme-icon {
    display: none;
    font-size: 18px;
}
:root[data-theme-pref="auto"] .header-menu__theme-icon--auto,
:root[data-theme-pref="light"] .header-menu__theme-icon--light,
:root[data-theme-pref="dark"] .header-menu__theme-icon--dark {
    display: inline-block;
}
/* Desktop: a small card that hangs from the bar's bottom edge; the transparent
   bridge keeps it under the pointer across the gap from the trigger. */
.header-menu__panel {
    margin: 0;
    padding: 0 0 var(--space-2);
    list-style: none;
    @media (min-width: 1024px) {
        --header-menu-gap: calc((var(--header-height) - var(--control-size)) / 2);
        position: absolute;
        inset-block-start: calc(100% + var(--header-menu-gap));
        inset-inline-end: 0;
        z-index: var(--z-dropdown);
        inline-size: max-content;
        padding: 4px;
        border: 1px solid var(--color-header-rule);
        border-radius: var(--radius-tile);
        background-color: var(--color-surface);
        box-shadow: var(--shadow-overlay);
        &::before {
            content: "";
            position: absolute;
            inset: calc(-1 * var(--header-menu-gap) - 1px) 0 100%;
        }
    }
    @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
        transition: opacity 0.18s var(--ease), translate 0.18s var(--ease);
        @starting-style {
            opacity: 0;
            translate: 0 -6px;
        }
    }
}
.header-menu__option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    inline-size: 100%;
    min-block-size: var(--control-size);
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-control);
    background: none;
    color: var(--color-text);
    font: inherit;
    font-size: var(--fs-meta);
    font-weight: 400;
    line-height: 20px;
    text-align: start;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    &:is(a, button):hover, &:is(a, button):focus-visible {
        background-color: var(--color-light);
        color: var(--color-secondary-text);
    }
    /* The current language keeps its text colour and takes only the hover
       background; the chosen theme only colours its icon. */
    &[aria-current="true"] {
        background-color: var(--color-light);
    }
    &[aria-current="true"], &[aria-pressed="true"] {
        cursor: default;
    }
    @media (min-width: 1024px) {
        justify-content: flex-start;
        gap: 8px;
        min-block-size: 34px;
        padding-inline: 25px;
        font-size: 14px;
    }
}
.header-menu__icon {
    font-size: 16px;
    [aria-pressed="true"] > & {
        color: var(--color-secondary-text);
    }
}
/* Pointer and touch open the submenu from the parent link (js/main.js). On
   desktop this disclosure is the visible caret after the label; in the
   no-script phone list it stays hidden until it has keyboard focus. */
.site-nav__trigger {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    display: grid;
    place-items: center;
    inline-size: 52px;
    block-size: 52px;
    background-color: var(--color-surface);
    color: var(--color-text);
    font-size: var(--fs-meta);
    list-style: none;
    cursor: pointer;
    clip-path: inset(50%);
    &::-webkit-details-marker {
        display: none;
    }
    &:focus-visible {
        clip-path: none;
    }
    @media (min-width: 768px) {
        inline-size: 54px;
        block-size: 54px;
    }
    @media (min-width: 1024px) {
        inset-block: 0;
        inline-size: 24px;
        block-size: auto;
        background-color: transparent;
        color: var(--color-ink-strong);
        font-size: 12px;
        clip-path: none;
        transition: color 0.4s;
    }
}
.site-nav__chevron {
    transform: rotate(90deg);
    transition: transform 0.2s;
    .site-nav__disclosure[open] & {
        transform: rotate(-90deg);
    }
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}
/* Desktop: a mega menu across the full width under the bar. It is fixed at the
   bar's height: the sticky bar always starts at the top, and once the bar is
   translated or blurred it contains the panel, which then moves with it. The
   content follows the page width (--wrap) with the header's inline padding. */
.site-nav__panel {
    border-block-start: 1px solid var(--color-light);
    @media (min-width: 1024px) {
        position: fixed;
        top: var(--header-height);
        inset-inline: 0;
        z-index: var(--z-raised);
        /* The 20px menu line sits centred in the bar; the bridge spans the gap
           from the link to the bar's bottom edge. */
        --nav-panel-gap: calc((var(--header-height) - 20px) / 2);
        padding-inline: var(--wrap-pad);
        border-block-start: 1px solid var(--color-header-rule);
        background-color: var(--color-surface);
        box-shadow: var(--shadow-dropdown);
        /* The transparent bridge keeps the panel under the pointer across the gap. */
        &::before {
            content: "";
            position: absolute;
            inset: calc(-1 * var(--nav-panel-gap)) 0 100%;
        }
    }
    /* The panel unrolls from the bar and rolls back up the same way: one CSS
       transition on the clip, toggled by .is-shown (js/main.js), so the way out
       is the way in reversed, from wherever the panel is. The symmetric, gentle
       curve keeps the edge moving visibly for the whole half second instead of
       jumping through the middle. The clip reaches past the bottom edge so the
       shadow stays, and above the top edge so the hover bridge (::before) stays
       under the pointer between the link and the panel. */
    @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
        clip-path: inset(-60px 0 100% 0);
        transition: clip-path 0.5s cubic-bezier(0.45, 0, 0.55, 1);
        .site-nav__disclosure.is-shown & {
            clip-path: inset(-60px 0 -32px 0);
        }
    }
}
.site-nav__sublist {
    margin: 0;
    padding: 0;
    list-style: none;
    @media (min-width: 1024px) {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 24px;
        max-inline-size: var(--wrap);
        margin-inline: auto;
        padding-block: 32px 40px;
    }
}
.site-nav__subitem:not(:last-child) {
    border-block-end: 1px solid var(--color-light);
    @media (min-width: 1024px) {
        border-block-end: 0;
    }
}
.site-nav__sublink {
    /* Each system as the site shows it: its installation photo, its name and
       the line from its home-page card. Set on the link: the inherited li
       text-wrap would override the panel. */
    @media (min-width: 1024px) {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: var(--space-2);
        block-size: 100%;
        padding: 0;
        border-radius: var(--radius-tile);
        font-size: 14px;
        text-align: start;
        transition: color 0.2s;
        &:hover, &:focus-visible, &[aria-current="page"] {
            background-color: transparent;
        }
        &:focus-visible {
            outline: 2px solid var(--color-focus);
            outline-offset: 4px;
        }
    }
}
.site-nav__media,
.site-nav__subtext {
    display: none;
}
/* The photo frame clips the zoom inside the rounded corners and carries the
   home-page system card overlay: the same navy-to-colour gradient from the
   system-card--* modifier, with the photo greyscale on top at the card's opacity. */
.site-nav__media {
    @media (min-width: 1024px) {
        --system-card-from: var(--color-primary);
        display: block;
        overflow: clip;
        margin-block-end: var(--space-1);
        border-radius: var(--radius-tile);
        background-image: linear-gradient(135deg, var(--system-card-from) calc(100% - var(--system-card-band)), var(--system-card-to) 100%);
    }
}
/* The photo eases in on hover or focus and back out the same way, as on the
   home-page system cards: 1.06 over 0.9s on the same curve. */
.site-nav__thumb {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    opacity: var(--system-card-image-opacity, 0.3);
    filter: saturate(0%);
    transition: scale 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    .site-nav__sublink:focus-visible & {
        scale: 1.06;
    }
    @media (hover: hover) {
        .site-nav__sublink:hover & {
            scale: 1.06;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}
.site-nav__subtext {
    @media (min-width: 1024px) {
        display: block;
        color: var(--color-body);
        font-size: var(--fs-meta);
        font-weight: 400;
        line-height: 1.45;
    }
}
/* Phones and tablets: the dongfeng mobile menu. A fixed panel under the bar with
   a dimmed overlay; the fire-fighting systems as a row of cards in the colours of
   their home-page cards, then the other pages and the languages. js/main.js
   opens and closes it; the panel scrolls on its own while the page stays put. */
.mobile-overlay {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: var(--z-mobile-overlay);
    background-color: rgb(0 30 97 / 16%);
}
.mobile-menu {
    --mobile-menu-pad: var(--wrap-pad);
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: var(--z-mobile-menu);
    display: flex;
    flex-direction: column;
    max-block-size: calc(100vh - var(--header-height));
    max-block-size: calc(100dvh - var(--header-height));
    border-block-start: 1px solid var(--color-header-rule);
    background-color: var(--color-surface);
    box-shadow: 0 24px 64px rgb(0 30 97 / 16%);
    overflow-y: auto;
    overscroll-behavior: contain;
}
/* The opening is a short move from the header's direction, reversible, using
   only transform and opacity. */
.mobile-overlay,
.mobile-menu {
    opacity: 0;
    transition: opacity 180ms ease-out;
    &[hidden] {
        display: none;
    }
    &.is-open {
        opacity: 1;
    }
    @media (min-width: 1024px) {
        display: none;
    }
}
.mobile-menu {
    transform: translateY(-12px);
    transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1), opacity 180ms ease-out;
    &.is-open {
        transform: translateY(0);
    }
    @media (prefers-reduced-motion: reduce) {
        transform: none;
        transition: opacity 0.2s ease;
    }
}
body:has(.mobile-menu.is-open) {
    overflow: hidden;
}
.mobile-menu__inner {
    inline-size: 100%;
    padding: var(--space-4) var(--mobile-menu-pad) calc(var(--space-7) + env(safe-area-inset-bottom));
}
.mobile-menu__systems {
    min-inline-size: 0;
    padding-block-end: var(--space-4);
}
.mobile-menu__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}
.mobile-menu__title {
    margin: 0;
    color: var(--color-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}
.mobile-menu__all {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-block-size: 44px;
    color: var(--color-body);
    font-size: var(--fs-meta);
    font-weight: 600;
    &:hover, &:focus-visible, &[aria-current="page"] {
        color: var(--color-secondary-text);
    }
}
/* The next card shows at the edge, so the row reads as scrollable. */
.mobile-menu__rail {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--mobile-menu-pad));
    padding: 8px var(--mobile-menu-pad) 4px;
    overflow-x: auto;
    scroll-padding-inline: var(--mobile-menu-pad);
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    &::-webkit-scrollbar {
        display: none;
    }
}
/* The system-card--* modifier supplies the colour and the photo. The name stays
   on the darker left 70% of the gradient: white on #001E61 is 15.5:1 and still
   5.8:1 at 70% on the lightest (yellow) card. */
.mobile-menu__card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex: 0 0 188px;
    flex-direction: column;
    justify-content: space-between;
    min-block-size: 112px;
    padding: 14px 12px;
    border-radius: var(--radius-tile);
    background-image: linear-gradient(90deg, var(--system-card-from, var(--color-primary)) 50%, var(--system-card-to) 100%);
    color: var(--color-white);
    overflow: hidden;
    scroll-snap-align: start;
    transition: filter 160ms ease;
    &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: var(--z-behind);
        background: var(--system-card-image, none) center / cover no-repeat;
        opacity: var(--system-card-image-opacity, 0.3);
        filter: saturate(0%);
    }
    &:active {
        filter: brightness(0.9);
    }
    &[aria-current="page"] {
        box-shadow: inset 0 0 0 2px var(--color-surface), 0 0 0 2px var(--system-card-to);
    }
    &:focus-visible {
        outline: 2px solid var(--color-secondary-text);
        outline-offset: 2px;
    }
}
/* Russian names are longer: a wider card keeps whole words on the navy part. */
html:lang(ru) .mobile-menu__card {
    flex-basis: 200px;
}
/* Any word still too long hyphenates rather than running onto the light end. */
.mobile-menu__card-name {
    max-inline-size: 70%;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
    hyphens: auto;
}
.mobile-menu__card-arrow {
    font-size: 18px;
}
.mobile-menu__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-4);
    padding-block-start: 12px;
}
.mobile-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-block-size: 52px;
    border-block-end: 1px solid var(--color-light);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    transition: color 160ms ease;
    &:hover, &:focus-visible, &[aria-current="page"] {
        color: var(--color-secondary-text);
    }
    .mobile-menu__links > &:nth-last-child(-n + 2) {
        border-block-end: 0;
    }
}
.mobile-menu__arrow {
    flex: none;
    color: var(--color-secondary);
    font-size: 14px;
}
.mobile-menu__langs,
.mobile-menu__themes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 3px;
    border-radius: calc(var(--radius-control) + 3px);
    background-color: var(--color-light);
}
/* Language and theme are each one segmented control: three equal segments on
   one track, the chosen one lifted on a thumb, no outlines. The theme segments
   carry the icon above the label, so the longer Russian labels fit three to a
   row on a 320px phone. */
.mobile-menu__langs {
    margin-block-start: var(--space-4);
}
.mobile-menu__themes {
    margin-block-start: var(--space-2);
}
.mobile-menu__lang,
.mobile-menu__theme {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-block-size: 44px;
    border-radius: var(--radius-control);
    background-color: transparent;
    color: var(--color-text);
    font-size: var(--fs-meta);
    font-weight: 500;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
    &:is(a, button):hover {
        color: var(--color-secondary-text);
    }
    &[aria-current="true"], &[aria-pressed="true"] {
        background-color: var(--color-segment-thumb);
        box-shadow: var(--shadow-segment-thumb);
        color: var(--color-heading);
        font-weight: 600;
    }
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
}
.mobile-menu__theme {
    flex-direction: column;
    gap: 2px;
    min-block-size: 52px;
    padding: var(--space-1);
    border: 0;
    font-family: inherit;
    font-size: var(--fs-xs);
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    & .ph {
        font-size: 18px;
    }
}
/* The site's orange inquiry button closes the menu, full width under the theme row. */
.mobile-menu__cta {
    display: flex;
    inline-size: 100%;
    min-block-size: 48px;
    margin-block-start: var(--space-4);
}
/* The sticky footer is revealed below the scrolling page content. */
.site-footer {
    --footer-bar-height: 101px;
    @media (min-width: 1024px) {
        position: sticky;
        bottom: calc(-1 * var(--footer-bar-height));
        z-index: var(--z-footer);
    }
}
.site-footer__main {
    position: relative;
    z-index: var(--z-footer);
    isolation: isolate;
    padding-block: var(--space-11) 90px;
    background: var(--color-primary) url("../assets/images/backgrounds/page-hero-1280.webp") center / cover no-repeat;
    color: var(--color-white);
    @media (min-width: 768px) {
        background-image: url("../assets/images/backgrounds/page-hero.webp");
    }
    &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: var(--z-behind);
        background-image: linear-gradient(180deg, var(--color-navy-deep) 20%, var(--color-navy-soft) 100%);
        opacity: 0.95;
        transition: background 1s, opacity 1s;
    }
    &:hover::before {
        background-color: var(--color-primary);
        opacity: 1;
    }
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    @media (min-width: 768px) {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand company"
            "certs company"
            "systems contact";
    }
    @media (min-width: 1024px) {
        grid-template-columns: minmax(280px, max-content) minmax(180px, max-content) minmax(0, max-content) max-content;
        grid-template-rows: auto 1fr;
        justify-content: space-between;
        column-gap: var(--space-6);
        grid-template-areas:
            "brand company systems contact"
            "certs company systems contact";
    }
}
.site-footer__col {
    padding: 0;
}
.site-footer__col--company {
    @media (min-width: 768px) {
        grid-area: company;
    }
}
.site-footer__col--systems {
    @media (min-width: 768px) {
        grid-area: systems;
    }
}
.site-footer__col--brand {
    margin-block-end: var(--space-8);
    text-align: center;
    @media (min-width: 768px) {
        grid-area: brand;
        margin: 0 15% 0 0;
        padding-block: var(--space-2);
        text-align: start;
    }
    @media (min-width: 1024px) {
        inline-size: 280px;
        margin-inline-end: var(--space-6);
    }
}
.site-footer__col--links {
    @media (min-width: 768px) {
        padding-block: var(--space-2);
    }
}
.site-footer__col--contact {
    @media (min-width: 768px) {
        grid-area: contact;
    }
    @media (min-width: 1024px) {
        padding-inline-end: 0;
    }
}
.site-footer__col--certs {
    display: flex;
    flex-direction: column;
    @media (min-width: 768px) {
        grid-area: certs;
        margin-inline-end: 15%;
        padding: 0 0 var(--space-6);
    }
    @media (min-width: 1024px) {
        inline-size: 280px;
        margin-inline-end: 0;
    }
}
.site-footer__logo {
    display: inline-block;
    inline-size: 250px;
    max-inline-size: calc(100% - 3px);
    block-size: auto;
    margin: 0 0 18px;
    vertical-align: top;
}
.site-footer__tagline {
    margin-block-end: 36px;
    font-size: 13.5px;
    font-weight: 500;
    & p {
        margin: 0 0 0.9rem;
    }
}
.site-footer__heading {
    margin: 0 0 var(--space-4);
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-transform: none;
    @media (min-width: 768px) {
        text-align: start;
    }
}
.site-footer__list {
    margin: 0 0 var(--space-6);
    padding: 0;
    list-style: none;
    text-align: center;
    @media (min-width: 768px) {
        margin-block-end: 17px;
        text-align: start;
    }
}
.site-footer__list--spaced {
    margin-block-end: var(--space-7);
    @media (min-width: 768px) {
        margin-block-end: 27px;
    }
}
.site-footer__list--last {
    margin-block-end: var(--space-8);
    @media (min-width: 768px) {
        margin-block-end: 0;
    }
}
.site-footer__list-item:not(:last-child) {
    padding-block-end: 2.5px;
}
.site-footer__list-item:not(:first-child) {
    margin-block-start: 2.5px;
}
.site-footer__list--stacked {
    & .site-footer__list-item:not(:first-child) {
        margin-block-start: var(--space-2);
    }
    & .site-footer__list-link {
        line-height: 1.35;
    }
}
.site-footer__list-link {
    display: block;
    color: var(--color-white);
    font-size: var(--fs-small);
    line-height: 22.4px;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: calc(0.2em + 1px);
    text-decoration-skip-ink: auto;
    transition: text-decoration-color 0.3s;
    &:hover, &:focus-visible {
        color: var(--color-white);
        text-decoration-color: var(--color-secondary);
    }
}
.site-footer__cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    @media (min-width: 768px) {
        flex-direction: row;
        align-items: flex-start;
        text-align: start;
    }
}
.site-footer__cert--iso {
    margin-block-end: var(--space-2);
    border-block-end: 1px solid var(--color-white);
}
.site-footer__cert--ats {
    margin-block-start: var(--space-1);
}
.site-footer__cert-media {
    flex: 0 0 auto;
    padding: var(--space-2);
}
.site-footer__cert--iso .site-footer__cert-media {
    @media (min-width: 768px) {
        flex-basis: 42.757%;
        padding-inline-start: 0;
    }
}
.site-footer__cert--ats .site-footer__cert-media {
    padding: 0;
    @media (min-width: 768px) {
        flex-basis: 23.099%;
        padding-block-end: 6px;
        text-align: center;
    }
}
.site-footer__cert-image--iso {
    display: block;
    inline-size: 120px;
    max-inline-size: 100%;
    block-size: auto;
}
.site-footer__cert-image--ats {
    display: inline-block;
    inline-size: 40px;
    block-size: auto;
    vertical-align: middle;
}
.site-footer__cert-text {
    margin: 0;
    padding: var(--space-4) 0 0 var(--space-2);
    color: var(--color-white);
    font-size: var(--fs-xs);
    line-height: 1.4;
    @media (min-width: 768px) {
        flex: 0 0 56.902%;
    }
}
.site-footer__cert-text p {
    margin: 0 0 0.9rem;
}
.site-footer__cert--ats .site-footer__cert-text {
    align-self: center;
    padding: var(--space-2);
    font-size: var(--fs-meta);
    @media (min-width: 768px) {
        flex-basis: 76.56%;
        padding-block-start: 21px;
    }
    & a {
        color: var(--color-white);
    }
}
.site-footer__bar {
    position: sticky;
    bottom: 0;
    z-index: var(--z-footer-bar);
    padding: var(--space-6) var(--wrap-pad) var(--space-4);
    border-block-start: 1px solid var(--color-footer-rule);
    background-color: var(--color-surface);
    @media (min-width: 768px) {
        padding-block: var(--space-2);
    }
    @media (min-width: 1024px) {
        padding-block: 0;
    }
}
.site-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-inline-size: var(--wrap);
    min-block-size: var(--space-11);
    margin-inline: auto;
}
.site-footer__bar-col {
    flex: 0 0 100%;
    min-block-size: 1px;
    padding-block: var(--space-2);
    text-align: center;
    @media (min-width: 768px) {
        flex-basis: 50%;
    }
}
.site-footer__bar-col:first-child {
    padding: 0;
    @media (min-width: 768px) {
        padding-block: var(--space-2);
        text-align: start;
    }
}
.site-footer__bar-col--end {
    @media (min-width: 768px) {
        text-align: end;
    }
}
.site-footer__copy {
    margin: 0;
    color: var(--color-text);
    font-size: var(--fs-xs);
    line-height: 1;
    & a {
        color: inherit;
    }
}
/* Page hero */
.page-hero {
    --page-hero-pad-block: var(--space-10) var(--space-10);
    position: relative;
    z-index: var(--z-content);
    isolation: isolate;
    margin-block-end: var(--page-hero-margin-end, 0);
    padding-block: var(--page-hero-pad-block);
    /* The breadcrumbs open the hero 12px under the header; title and text
       sit at the bottom, with the free height between them. */
    display: flex;
    flex-direction: column;
    min-block-size: var(--page-hero-min, auto);
    padding-block-start: 12px;
    /* Phones load the 1280px variant; wider screens the full image. */
    background: var(--color-primary) var(--page-hero-image-sm, var(--page-hero-image, none)) center / cover no-repeat;
    @media (min-width: 768px) {
        background-image: var(--page-hero-image, none);
    }
    &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: var(--z-behind);
        background-image: linear-gradient(59deg, var(--color-navy-deep) 27%, var(--color-black) 100%);
        opacity: 0.53;
    }
    /* A soft shade along the top edge, under the header, fading out downward. */
    &::after {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        z-index: var(--z-behind);
        block-size: 240px;
        background-image: linear-gradient(to bottom, rgb(0 0 0 / 0.4), rgb(0 0 0 / 0.16) 45%, rgb(0 0 0 / 0));
        pointer-events: none;
    }
}
.page-hero__title {
    margin: 0 0 12px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--page-hero-title-size-mobile, var(--fs-page-title));
    font-weight: 700;
    line-height: var(--page-hero-title-lh-mobile, 1);
    text-transform: uppercase;
    @media (min-width: 768px) {
        font-size: var(--fs-page-title);
        line-height: 1;
    }
}
/* Long system titles split into two balanced lines, as in the mega menu;
   Russian words are longer and need a wider measure. */
html:lang(ru) .page-hero__title--post {
    --page-hero-title-measure: 32ch;
}
.page-hero__title--post {
    max-inline-size: var(--page-hero-title-measure, 24ch);
    margin-block-end: var(--space-1);
    text-wrap: balance;
    font-size: var(--fs-h1);
    font-weight: 500;
    @media (min-width: 768px) {
        font-size: var(--fs-h1);
    }
}
.page-hero__rule {
    display: block;
    inline-size: 150px;
    margin-block-end: 3px;
    border-block-start: 1px solid var(--color-secondary);
}
.page-hero__rule--flush {
    margin-block-end: 0;
}
.page-hero:has(.page-hero__intro) {
    @media (min-width: 768px) {
        --page-hero-min: 520px;
    }
    @media (min-width: 1024px) {
        --page-hero-min: 600px;
    }
}
.page-hero__inner {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
}
.page-hero__breadcrumbs + * {
    margin-block-start: auto;
}
.page-hero__breadcrumbs {
    margin-block-end: var(--page-hero-breadcrumbs-gap, var(--space-8));
    & .breadcrumbs__list {
        margin: 0;
    }
}
.page-hero__rule + .page-hero__intro {
    margin-block-start: var(--space-5);
}
.page-hero__intro {
    color: var(--color-white);
    font-size: var(--fs-lead);
    font-weight: 400;
    line-height: 1.4em;
    @media (min-width: 768px) {
        padding-inline-end: var(--page-hero-intro-pad-md, 0%);
    }
    @media (min-width: 1024px) {
        padding-inline-end: var(--page-hero-intro-pad, 54%);
    }
}
.breadcrumbs {
    color: var(--color-white);
    font-size: 12px;
    font-weight: 400;
    line-height: 22.4px;
    /* The orange underline appears on hover and keyboard focus, as in the
       footer links; the current page stays plain text. */
    & a {
        color: var(--color-white);
        text-decoration-line: underline;
        text-decoration-color: transparent;
        text-decoration-thickness: 1px;
        text-underline-offset: calc(0.2em + 1px);
        text-decoration-skip-ink: auto;
        transition: text-decoration-color 0.3s;
    }
    & a:hover, & a:focus-visible {
        color: var(--color-white);
        text-decoration-color: var(--color-secondary);
    }
}
.breadcrumbs__list {
    margin: 0 0 0.9rem;
}
.breadcrumbs__separator::before {
    content: " - ";
    white-space: pre-wrap;
}
.section {
    position: relative;
    z-index: var(--z-content);
    isolation: isolate;
    padding-block: var(--section-pad-block-mobile, var(--section-pad-block, var(--space-10) var(--space-10)));
    background-color: var(--section-bg, var(--color-surface));
    @media (min-width: 768px) {
        padding-block: var(--section-pad-block-md, var(--section-pad-block, var(--space-10) var(--space-10)));
    }
    @media (min-width: 1024px) {
        padding-block: var(--section-pad-block, var(--space-10) var(--space-10));
    }
}
.section--muted {
    --section-bg: var(--color-light);
}
/* Reading width for text pages and forms: the column starts on the frame's
   left edge like everything else and stops at --section-wrap. */
.section--narrow > .container > * {
    max-inline-size: var(--section-wrap, 900px);
}
.section-title {
    margin: 0 0 var(--section-title-gap, var(--space-4));
    color: var(--section-title-color, var(--color-heading));
    font-family: var(--font-display);
    font-size: var(--section-title-size-mobile, var(--section-title-size, var(--fs-h2)));
    font-weight: 700;
    line-height: var(--section-title-lh, 1);
    text-align: var(--section-title-align, start);
    text-transform: uppercase;
    @media (min-width: 768px) {
        font-size: var(--section-title-size, var(--fs-h2));
    }
    & > a {
        color: inherit;
    }
}
.prose {
    color: var(--color-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    display: flow-root;
    & ul, & ol {
        padding-inline-start: var(--space-7);
    }
    & h2 {
        margin-block: 0.5rem 1rem;
    }
    & img {
        display: block;
    }
}
.prose--link-dark a {
    color: var(--color-ink-strong);
}
.prose--link-dark a:hover {
    color: var(--color-orange-bright);
}
.icon-list {
    --icon-list-gap: 5px;
    margin: 0 0 var(--icon-list-margin-end, 0);
    padding: 0;
    list-style: none;
    @media (min-width: 768px) {
        --icon-list-gap: var(--icon-list-gap-md, 5px);
    }
}
.icon-list--loose-mobile {
    --icon-list-gap: 25px;
    @media (min-width: 768px) {
        --icon-list-gap: var(--icon-list-gap-md, 5px);
    }
}
.icon-list__item:not(:last-child) {
    padding-block-end: calc(var(--icon-list-gap) / 2);
}
.icon-list__item:not(:first-child) {
    margin-block-start: calc(var(--icon-list-gap) / 2);
}
.icon-list__link {
    display: flex;
    align-items: center;
    min-block-size: 24px;
    font-size: var(--icon-list-size, var(--fs-small));
    line-height: 22.4px;
    &:hover .icon-list__text {
        color: var(--color-secondary);
    }
}
.icon-list__icon {
    display: flex;
    flex: none;
    color: var(--color-secondary);
    font-size: 14px;
    transition: color 0.3s;
}
.icon-list__icon .ph {
    inline-size: 1.25em;
}
.icon-list__text {
    padding-inline-start: var(--space-1);
    color: var(--color-heading);
    transition: color 0.3s;
}
.icon-list--plain {
    --icon-list-gap: 0px;
    & .icon-list__item {
        display: flex;
        align-items: center;
        font-size: var(--fs-base);
        line-height: 22.4px;
    }
    & .icon-list__text {
        color: var(--color-body);
    }
}
.list-columns {
    display: grid;
    grid-template-columns: 1fr;
    margin-block-start: var(--space-9);
    @media (min-width: 768px) {
        grid-template-columns: 1fr 1fr;
    }
    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, 1fr);
    }
}
.list-columns__col {
    padding: var(--space-2);
    & > * {
        margin-block: 0 var(--space-2);
    }
    & > :last-child {
        margin-block-end: var(--space-4);
        @media (min-width: 768px) {
            margin-block-end: 0;
        }
    }
}
.list-columns__col--last-md {
    margin-block-end: var(--space-8);
    & > :last-child {
        margin-block-end: 0;
    }
    @media (min-width: 1024px) {
        margin-block-end: 0;
    }
}
.list-columns__title {
    color: var(--color-heading);
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.list-columns__rule {
    display: block;
    inline-size: 50%;
    margin-block-end: var(--space-4);
    padding-block: 2px;
}
.list-columns__rule::before {
    content: "";
    display: block;
    border-block-start: 3px solid var(--color-secondary);
}
/* System cards. The title link covers the whole card, so the card is one link.
   The arrow keeps its own row under the text (the card height does not change)
   and that row is always the last one in the card, so every arrow sits in the
   same corner whatever the text length or language: the pull moves it into the
   empty end padding, 25px from the right edge, and it rests on the bottom
   padding. It is never lifted into the text area, where the last line of
   text can reach the right edge (phones, English and Russian copy). */
/* The system colour is a diagonal band that rises from the bottom-right corner,
   around the arrow. White text on the light system colours fails contrast
   (yellow, green and cyan reach 1.7 to 2.5:1), and the text can run to the
   right edge, so the band is sized to stay below and right of every text line
   in every language: 130px on phones, 200px from 768px.
   On hover it rises gently to 280px and recedes the same way; the band length
   is registered so it animates (browsers without @property change at once).
   Measured: no text line under 4.5:1 (3:1 for the titles), at rest or on hover.
   The sidebar cards are the exception, see .system-card--compact. */
@property --system-card-band {
    syntax: "<length>";
    inherits: true;
    initial-value: 130px;
}
.system-card {
    --system-card-from: var(--color-primary);
    --system-card-arrow-pull: 5px;
    --system-card-band: 130px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    /* Keeps the zoomed photo inside the rounded card. */
    overflow: clip;
    margin: var(--system-card-margin-mobile, 0 0 var(--space-6));
    padding: var(--system-card-pad-mobile, var(--space-7) var(--space-6) 0);
    border-radius: var(--radius-card);
    background-image: linear-gradient(135deg, var(--system-card-from) calc(100% - var(--system-card-band)), var(--system-card-to) 100%);
    color: var(--color-white);
    transition: --system-card-band 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: var(--z-behind);
        border-radius: inherit;
        background: var(--system-card-image, none) center / cover no-repeat;
        opacity: var(--system-card-image-opacity, 0.3);
        filter: saturate(0%);
        /* The photo eases in on hover or focus and back out the same way,
           on the arrow's curve, a little slower so it trails the arrow. */
        transition: scale 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    }
    &:focus-within::before {
        scale: 1.06;
    }
    &:hover {
        box-shadow: var(--shadow-card-hover);
        @media (hover: hover) {
            &::before {
                scale: 1.06;
            }
        }
    }
    @media (min-width: 768px) {
        --system-card-arrow-pull: 25px;
        --system-card-band: 200px;
        margin: var(--space-4);
        padding: var(--space-8) var(--space-8) 0 45px;
    }
}
.system-card--wide-pad {
    @media (min-width: 768px) {
        --system-card-arrow-pull: 35px;
        padding-inline-end: var(--space-9);
    }
}
.system-card__title {
    margin: 0 0 var(--space-2);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: var(--system-card-title-size-mobile, 44px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    & > a {
        color: inherit;
        &::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 1;
            border-radius: var(--radius-card);
        }
    }
    @media (min-width: 768px) {
        font-size: 42px;
    }
}
.system-card__subtitle {
    margin: 0 0 var(--space-6);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--fs-card-subtitle);
    font-weight: 500;
    line-height: var(--system-card-subtitle-lh-mobile, 1.2);
    text-transform: uppercase;
    /* The inquiry card's subtitle links to the contact page, as on the old
       site. It sits above the title link that covers the whole card. */
    & > a {
        position: relative;
        z-index: 2;
        /* A 24px tall hit area around the line, without moving the text. */
        display: inline-block;
        padding-block: calc((24px - 1lh) / 2);
        margin-block: calc((1lh - 24px) / 2);
        color: inherit;
        &:hover {
            text-decoration: underline;
        }
    }
    @media (min-width: 768px) {
        line-height: 1;
    }
}
.system-card__text {
    margin: 0;
    padding-inline-end: var(--system-card-text-pad-mobile, 0%);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    @media (min-width: 768px) {
        padding-inline-end: var(--system-card-text-pad, 19%);
    }
}
/* The arrow box ends --system-card-arrow-inset from the right edge (through the
   pull). The glyph's ink sits 0.125em inside the right of its box and 0.18em
   above its bottom, so the bottom margin is the inset less 0.055em: the ink is
   as far from the bottom edge as from the right one. The card has no bottom
   padding; the arrow row is always last. At rest the arrow waits 15px to the
   left and glides into the corner on hover or focus, and back the same way. */
.system-card__arrow {
    /* Overrides the Bold family that .ph sets with !important (this rule comes later). */
    font-family: "Phosphor-Regular" !important;
    inline-size: fit-content;
    margin-block: auto calc(var(--system-card-arrow-inset, 25px) - 0.055em);
    margin-inline: auto calc(-1 * var(--system-card-arrow-pull));
    color: var(--color-white);
    font-size: 40px;
    line-height: 1;
    translate: -15px 0;
    transition: translate 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    .system-card:focus-within & {
        translate: 0 0;
    }
    @media (hover: hover) {
        .system-card:hover & {
            translate: 0 0;
        }
    }
}
/* Compact (sidebar) cards: the arrow sits 20px from the right edge. The colour
   band is the 80px corner scaled to twice its size (same fade, twice as large),
   at the client's request. It reaches the last text lines: on the yellow,
   green, cyan and inquiry cards those lines drop below 4.5:1. */
.system-card--compact {
    --system-card-arrow-pull: 10px;
    --system-card-band: 160px;
    padding: var(--space-7) var(--space-6) 0;
    @media (min-width: 768px) {
        --system-card-band: 160px;
        margin: 0 0 var(--space-6);
        padding: var(--space-7) var(--space-6) 0;
    }
    & .system-card__title {
        margin-block-end: var(--space-1);
        font-size: 31px;
    }
    & .system-card__subtitle {
        margin-block-end: var(--space-3);
        font-size: var(--fs-xs);
        font-weight: 600;
        line-height: 1;
    }
    & .system-card__text {
        padding-inline-end: 0;
        font-size: var(--fs-meta);
        font-weight: 500;
        line-height: 1.3;
    }
    & .system-card__arrow {
        --system-card-arrow-inset: 20px;
        font-size: 28px;
    }
}
.system-card--last {
    margin-block-end: var(--space-8);
}
.system-card--sprinkler {
    --system-card-to: var(--color-red);
    --system-card-image: url("../assets/images/gallery/instalacija-za-gasenje-sprinkler-01-1280.webp");
    --system-card-image-opacity: 0.45;
}
.system-card--mist {
    --system-card-to: var(--color-secondary);
    --system-card-text-pad: 0%;
    --system-card-image: url("../assets/images/gallery/vodena-magla-01-1280.webp");
    --system-card-image-opacity: 0.28;
}
.system-card--gas {
    --system-card-from: var(--color-navy-deep);
    --system-card-to: var(--color-accent);
    --system-card-image: url("../assets/images/gallery/sistem-za-gasenje-pozara-gasom-03-1280.webp");
    --system-card-image-opacity: 0.3;
}
.system-card--foam {
    --system-card-from: var(--color-navy-deep);
    --system-card-to: var(--color-yellow);
    --system-card-image: url("../assets/images/gallery/sistem-za-gasenje-pozara-penom-01-1280.webp");
    --system-card-image-opacity: 0.3;
}
.system-card--detection {
    --system-card-to: var(--color-cyan);
    --system-card-image: url("../assets/images/gallery/sistem-za-detekciju-i-gasenje-pozara-02-1280.webp");
    --system-card-image-opacity: 0.28;
}
.system-card--inquiry {
    --system-card-from: var(--color-secondary-surface);
    --system-card-to: var(--color-rose);
    --system-card-image: none;
}
.system-card--mist-alt {
    --system-card-to: var(--color-orange-bright);
    --system-card-image-opacity: 0.2;
}
.system-card:not(.system-card--compact):hover {
    @media (min-width: 768px) and (hover: hover) {
        --system-card-band: 280px;
    }
}
/* The inquiry card's light orange reaches its last text line at 280px on some
   widths (4.48:1); 250px keeps every line at 4.5:1. */
.system-card--inquiry:not(.system-card--compact):hover {
    @media (min-width: 768px) and (hover: hover) {
        --system-card-band: 250px;
    }
}
.system-grid {
    position: relative;
    z-index: var(--z-content);
    padding: var(--space-8) 0 var(--space-11);
    background-color: var(--color-surface);
    @media (min-width: 768px) {
        padding-block: var(--system-grid-pad-block-md, var(--space-11));
    }
    @media (min-width: 1024px) {
        padding-block: var(--system-grid-pad-block, var(--space-11) var(--space-13));
    }
}
.system-grid__title {
    margin: 0;
    color: var(--color-secondary-large);
    font-family: var(--font-display);
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.4px;
    text-align: center;
    text-transform: uppercase;
    @media (min-width: 768px) {
        font-size: 60px;
    }
}
.system-grid__subtitle {
    margin: var(--space-4) 0 var(--space-8);
    color: var(--color-heading);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.4px;
    text-align: center;
    text-transform: uppercase;
    @media (min-width: 1024px) {
        font-size: 20px;
        line-height: 1;
    }
}
/* Lead layout: a left-aligned intro on the card edges. From 1024px the title
   and deck take the first card column and the lead paragraph the second,
   aligned to the bottom of the deck. The inline padding equals the card margin. */
.system-grid--lead {
    & > .container {
        @media (min-width: 1024px) {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }
    & .system-grid__title,
    & .system-grid__subtitle,
    & .system-grid__lead {
        @media (min-width: 768px) {
            padding-inline: var(--space-4);
        }
    }
    & .system-grid__title {
        font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
        line-height: 0.95;
        text-align: start;
        text-wrap: balance;
        @media (min-width: 1024px) {
            grid-column: 1;
        }
    }
    & .system-grid__subtitle {
        margin: var(--space-3) 0 0;
        font-size: clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
        font-weight: 500;
        line-height: 1.3;
        letter-spacing: 0;
        text-align: start;
        text-transform: none;
        text-wrap: balance;
        @media (min-width: 1024px) {
            grid-column: 1;
            margin-block-start: var(--space-4);
        }
    }
    & .system-grid__lead {
        max-inline-size: 40rem;
        margin: var(--space-4) 0 0;
        color: var(--color-body);
        font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
        line-height: 1.65;
        text-wrap: pretty;
        @media (min-width: 1024px) {
            grid-column: 2;
            grid-row: 1 / span 2;
            align-self: end;
            margin-block-start: 0;
        }
    }
    & .system-grid__cards {
        margin-block-start: var(--space-7);
        @media (min-width: 1024px) {
            grid-column: 1 / -1;
            margin-block-start: var(--space-9);
        }
    }
}
/* minmax(0, 1fr) prevents long translated titles from widening grid columns.
   The cards sit flush with the frame; the space between them is the gap. */
.system-grid__cards {
    container-type: inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--system-grid-gap, var(--space-6));
    @media (min-width: 768px) {
        grid-template-columns: repeat(var(--system-grid-columns-md, 1), minmax(0, 1fr));
        gap: calc(2 * var(--space-4));
    }
    @media (min-width: 1024px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.system-grid__cards > .system-card {
    margin: 0;
    @media (min-width: 768px) {
        min-inline-size: min-content;
    }
}
.system-grid__cards .system-card__title {
    max-inline-size: var(--system-card-title-cap, none);
    @media (min-width: 768px) {
        max-inline-size: calc(100cqi / var(--system-grid-columns-md, 1) - var(--system-card-pads, 95px));
    }
    @media (min-width: 1024px) {
        max-inline-size: calc(50cqi - var(--system-card-pads, 95px));
    }
}
.system-grid__cards .system-card--wide-pad {
    --system-card-pads: 105px;
}
/* Sticky sidebar */
.with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    @media (min-width: 1024px) {
        grid-template-columns: 70% 30%;
    }
}
.with-aside__main {
    margin-block-end: var(--with-aside-main-gap, 0px);
    padding: 0;
    @media (min-width: 768px) {
        margin-block-end: var(--with-aside-main-gap-md, 70px);
    }
    @media (min-width: 1024px) {
        margin-block-end: 0;
        padding: 0 var(--with-aside-gap, var(--space-8)) 0 0;
    }
}
.with-aside__aside {
    background-color: var(--color-surface);
    @media (min-width: 768px) {
        padding-inline: var(--with-aside-aside-pad-md, var(--space-6));
    }
    @media (min-width: 1024px) {
        padding: var(--space-2);
    }
}
.with-aside__card {
    @media (min-width: 1024px) {
        position: sticky;
        top: var(--with-aside-card-top, 120px);
        z-index: var(--z-sticky-card);
    }
}
.with-aside__card:nth-child(2) {
    --with-aside-card-top: 140px;
}
.with-aside__card:nth-child(3) {
    --with-aside-card-top: 160px;
}
.with-aside__card:nth-child(4) {
    --with-aside-card-top: 180px;
}
.with-aside__card:nth-child(5) {
    --with-aside-card-top: 200px;
}
.with-aside__card:nth-child(6) {
    --with-aside-card-top: 220px;
}
/* Service cards */
.service-card {
    display: block;
    scroll-margin-block-start: calc(var(--header-height) + var(--space-4));
    margin: 0 0 var(--service-card-margin-end, var(--space-7));
    padding: var(--service-card-pad-mobile, var(--space-7) var(--space-6) 45px);
    border-radius: var(--radius-card);
    background-color: var(--color-surface-raised);
    box-shadow: var(--shadow-card);
    text-align: var(--service-card-mobile-align, start);
    @media (min-width: 768px) {
        display: flex;
        flex-direction: row;
        align-items: var(--service-card-align, center);
        gap: var(--service-card-gap, var(--space-9));
        padding: var(--service-card-pad, var(--space-6) var(--space-6) 45px var(--space-7));
        text-align: start;
    }
}
.service-card__icon {
    display: block;
    flex: none;
    inline-size: fit-content;
    margin-block-end: var(--space-4);
    margin-inline: var(--service-card-icon-margin-inline, 0 auto);
    color: var(--color-icon-ink);
    font-size: var(--service-card-icon-size-mobile, 120px);
    line-height: 1;
    & .icon {
        display: block;
    }
    @media (min-width: 768px) {
        margin: 0;
        font-size: 100px;
    }
}
.service-card__body {
    display: flow-root;
    flex: 1 1 auto;
}
.service-card__title {
    margin: 0.5rem 0 var(--service-card-title-gap, var(--space-3));
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-size: var(--service-card-title-size, 33px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}
.service-card__text {
    margin: 0;
    color: var(--color-body);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1.3;
}
/* Project cards */
/* Cards sit flush with the frame: the space between them is the grid gap. */
.project-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: calc(2 * var(--space-4));
    padding-block: var(--space-4);
    @media (min-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.project-card {
    padding: 0;
}
.project-card--wide-md {
    @media (min-width: 768px) {
        grid-column: 1 / -1;
    }
    @media (min-width: 1024px) {
        grid-column: auto;
    }
}
.project-card__image {
    display: block;
    inline-size: 100%;
    margin-block-end: var(--space-4);
    border-radius: var(--project-card-radius, var(--radius-tile));
}
.project-card__title {
    margin: 0;
    color: var(--color-secondary);
    font-family: var(--font-display);
    font-size: var(--fs-project-title);
    font-weight: 700;
    line-height: 1.2em;
    text-transform: uppercase;
}
.project-card__type {
    margin: 0 0 var(--space-2);
    color: var(--color-heading);
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}
.project-card__rule {
    margin: 0 0 var(--space-2);
    border: 0;
    border-block-start: 1px solid var(--color-light);
}
.section--muted .project-card__rule {
    border-block-start-color: var(--color-surface);
}
.project-card__details {
    font-size: 0.9em;
    line-height: 1.4em;
    & a {
        color: var(--color-link-strong);
        text-decoration: underline;
    }
    & a:hover {
        color: var(--color-orange-bright);
        text-decoration: underline;
    }
}
/* The original cards keep an invisible 1px divider before the details; this is its space. */
.project-card__details--spaced {
    padding-block-start: calc(var(--space-2) + 1px);
}
.project-card__details--inset {
    max-inline-size: 99.706%;
}
/* Client logos */
.client-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.client-grid__item {
    flex: 0 0 33%;
    max-inline-size: 33%;
    text-align: center;
    @media (min-width: 768px) {
        flex-basis: 20%;
        max-inline-size: 20%;
    }
}
.client-grid__tile {
    display: block;
    margin: var(--space-2);
    border: 1px solid var(--color-logo-rule);
    border-radius: var(--radius-card);
    background-color: var(--color-logo-plate);
    transition: box-shadow 0.3s;
    &:hover {
        box-shadow: var(--shadow-tile-hover);
    }
}
.client-grid__image {
    display: inline-block;
    inline-size: 90px;
    vertical-align: middle;
    transition: opacity 0.3s, transform 0.3s;
    .client-grid__tile:hover & {
        opacity: 0.9;
    }
    @media (min-width: 768px) {
        inline-size: 100px;
    }
    @media (min-width: 1024px) {
        inline-size: 120px;
    }
}
.framed-image {
    display: inline-block;
    border: 5px solid var(--color-light);
    border-radius: var(--radius-tile);
    vertical-align: middle;
}
.framed-image--half {
    inline-size: 100%;
    @media (min-width: 768px) {
        inline-size: 50%;
    }
}
.contact {
    display: grid;
    grid-template-columns: 1fr;
    @media (min-width: 768px) {
        grid-template-columns: 35.083% 64.917%;
    }
}
.contact__details {
    display: flex;
    flex-direction: column;
    padding-block: var(--space-2);
    & > * + * {
        margin-block-start: var(--space-2);
    }
}
.contact__map {
    padding: var(--space-2);
    border-radius: var(--radius-tile);
    background-color: var(--color-light);
}
.map-embed {
    margin-block-end: -8px;
    overflow: hidden;
    border-radius: var(--radius-tile);
    background-color: var(--color-light);
}
.map-embed__frame {
    inline-size: 100%;
    block-size: var(--map-embed-height, 450px);
    border: 0;
    vertical-align: baseline;
}
.notice-panel {
    position: relative;
    z-index: var(--z-content);
    isolation: isolate;
    background: var(--color-surface) url("../assets/images/backgrounds/pattern.svg") center / cover no-repeat;
    &::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: var(--z-behind);
        background-color: var(--color-surface);
        opacity: var(--notice-panel-veil, 0.8);
    }
}
.notice-panel__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-block-size: var(--notice-panel-min-mobile, var(--notice-panel-min, 600px));
    padding-block: var(--space-2);
    text-align: var(--notice-panel-align, start);
    @media (min-width: 768px) {
        min-block-size: var(--notice-panel-min, 600px);
    }
}
/* The message keeps a 600px measure inside the shared frame: on the frame's
   left edge, or centred in the frame for the centred variant. */
.notice-panel__inner > * {
    max-inline-size: var(--notice-panel-wrap, 600px);
    margin-block: 0 var(--space-2);
}
.notice-panel--center .notice-panel__inner > * {
    margin-inline: auto;
}
.notice-panel__inner > :last-child {
    margin-block-end: 0;
}
.notice-panel--center {
    --notice-panel-align: center;
}
.notice-panel__text {
    margin-block-end: var(--notice-panel-text-gap, 60px);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    & > p {
        margin-block: 0;
    }
}
.notice-panel__text--tight {
    --notice-panel-text-gap: 40px;
}
.notice-panel__title {
    margin-block-end: 22px;
    color: var(--color-heading);
    font-family: var(--font-display);
    font-size: var(--notice-panel-title-size, var(--fs-page-title));
    font-weight: 700;
    line-height: 1;
    text-align: var(--notice-panel-align, start);
    text-transform: uppercase;
}
.notice-panel__label {
    margin-block-end: calc(14.4px + var(--space-2));
    font-family: var(--font-body);
    font-size: var(--fs-label);
    font-weight: 500;
    text-transform: uppercase;
}
.notice-panel__icon {
    margin-block-end: 40px;
    color: var(--color-secondary);
    text-align: center;
    & .ph {
        display: inline-block;
        font-size: 100px;
        vertical-align: baseline;
    }
}
.notice-panel a:not(.button) {
    color: var(--color-ink-strong);
}
.notice-panel a:not(.button):hover {
    color: var(--color-orange-bright);
}
/* Reveal content after 3s if JavaScript never starts. */
@media (scripting: enabled) {
    .is-invisible {
        visibility: hidden;
        animation: invisible-fallback 0s 3s forwards;
    }
    .js .is-invisible {
        animation: none;
    }
}
@keyframes invisible-fallback {
    to {
        visibility: visible;
    }
}
/* Scroll reveal, as in the other projects: a block rises a short distance once
   it enters the viewport; js/main.js staggers blocks that enter together. */
.is-animated[data-animate="reveal"] {
    animation: reveal var(--dur-reveal) var(--ease-reveal);
}
@keyframes reveal {
    from {
        opacity: 0;
        transform: translate3d(0, var(--reveal-shift), 0);
    }
}
/* js/main.js owns motion-effect transforms and opacity; do not add CSS transitions. */
[data-fx] {
    transition: none;
}
.fx-layer {
    position: absolute;
    inset: 0;
    z-index: var(--z-behind);
    overflow: hidden;
}
.fx-layer__image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center;
}
/* Background slideshow */
.slideshow {
    position: absolute;
    inset: 0;
    z-index: var(--z-behind);
    overflow: hidden;
    background-color: var(--color-black);
}
.slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--slideshow-fade, 2000ms);
}
.slideshow__slide.is-active, .slideshow__slide.is-leaving {
    opacity: 1;
}
.slideshow__slide.is-active {
    z-index: 2;
}
.slideshow__slide.is-leaving {
    z-index: 1;
}
.slideshow__image {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s linear;
}
/* A hidden slide resets without running the long zoom-out. */
.slideshow__slide:not(.is-active, .is-leaving) .slideshow__image {
    transition: none;
}
.slideshow__slide.is-active .slideshow__image.is-zooming {
    transform: scale(1.12);
    transition-duration: 20s;
}
/* Logo marquee: one row loops endlessly. The CSS animation is the fallback;
   main.js moves the track in pixels so hover can halve the speed without a jump.
   The second group is an aria-hidden copy that closes the loop. */
.marquee {
    --marquee-gap: 20px;
    --marquee-logo-size: 88px;
    --marquee-fade-width: 60px;
    --marquee-duration: 72s;
    position: relative;
    overflow: hidden;
    @media (min-width: 768px) {
        --marquee-gap: 45px;
        --marquee-logo-size: 107px;
        --marquee-fade-width: 100px;
    }
    &::before, &::after {
        position: absolute;
        inset-block: 0;
        z-index: 1;
        inline-size: var(--marquee-fade-width);
        pointer-events: none;
        content: "";
    }
    &::before {
        inset-inline-start: 0;
        background: linear-gradient(to right, var(--color-surface), color-mix(in srgb, var(--color-surface) 55%, transparent), transparent);
    }
    &::after {
        inset-inline-end: 0;
        background: linear-gradient(to left, var(--color-surface), color-mix(in srgb, var(--color-surface) 55%, transparent), transparent);
    }
}
.marquee--reverse {
    --marquee-duration: 60s;
}
.marquee__track {
    display: flex;
    inline-size: max-content;
    animation: marquee-scroll var(--marquee-duration) linear infinite;
    will-change: transform;
    .marquee--reverse > & {
        animation-direction: reverse;
    }
    .marquee.is-moving > & {
        animation: none;
    }
}
.marquee__group {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--marquee-gap);
    padding-inline-end: var(--marquee-gap);
}
.marquee__item {
    flex: none;
}
.marquee__item img {
    display: block;
    inline-size: var(--marquee-logo-size);
    block-size: auto;
    opacity: 0.87;
    transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
    .marquee__item:hover img {
        transform: scale(1.05);
    }
}
@keyframes marquee-scroll {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}
/* Animated headline */
.headline {
    display: block;
    line-height: 1.2;
}
.headline__plain {
    position: relative;
    z-index: 1;
}
.headline__dynamic {
    position: relative;
    display: inline-block;
    overflow: visible;
    text-align: inherit;
}
.headline__text {
    position: relative;
    z-index: 1;
    display: inline-block;
}
.headline__marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    overflow: visible;
    fill: none;
    stroke: var(--headline-stroke, var(--color-white));
    stroke-width: var(--headline-stroke-width, 10);
    stroke-dasharray: 0 1500;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: 0.3s;
    pointer-events: none;
}
.headline.is-drawn .headline__marker {
    animation: headline-dash var(--headline-duration, 1.2s) forwards;
}
.headline.is-hiding .headline__marker {
    animation: headline-hide 0.4s forwards;
    opacity: 1;
    stroke-dasharray: 1500 1500;
}
@keyframes headline-dash {
    from {
        opacity: 1;
        stroke-dasharray: 0 1500;
    }
    to {
        opacity: 1;
        stroke-dasharray: 1500 1500;
    }
}
@keyframes headline-hide {
    from {
        opacity: 1;
        stroke-dasharray: 1500 1500;
    }
    to {
        filter: blur(10px);
        opacity: 0;
    }
}
/* Cookie consent */
.consent-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: var(--control-size-compact);
    max-inline-size: 100%;
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    &::after {
        content: "";
        position: absolute;
        inset: calc(50% - var(--control-size) / 2) 0;
    }
    &:hover, &:focus-visible {
        background: var(--color-secondary);
        border-color: var(--color-secondary);
        color: var(--color-black);
    }
}
.consent-button--secondary {
    background: transparent;
    color: var(--color-heading);
    &:hover, &:focus-visible {
        background: var(--color-light);
        border-color: var(--color-heading);
        color: var(--color-heading);
    }
}
.icon-button {
    display: inline-grid;
    place-items: center;
    inline-size: var(--control-size);
    block-size: var(--control-size);
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    &:hover {
        background: var(--color-light);
    }
}
.consent {
    position: fixed;
    z-index: var(--z-consent);
    inset-inline: var(--space-2);
    inset-block-end: max(var(--space-2), env(safe-area-inset-bottom));
    max-inline-size: var(--dialog-width);
    max-block-size: calc(100vh - var(--space-6));
    max-block-size: calc(100svh - var(--space-6));
    margin-inline: auto;
    overflow-y: auto;
    border-radius: var(--radius-dialog);
    background: var(--color-surface-raised);
    box-shadow: var(--shadow-dialog);
    @media (min-width: 768px) {
        inset-inline: var(--space-5);
        inset-block-end: max(var(--space-5), env(safe-area-inset-bottom));
        margin-inline: auto 0;
    }
}
.consent__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2);
    padding: var(--space-3);
}
.consent__text {
    margin: 0;
    color: var(--color-body);
    font-size: var(--fs-caption);
    line-height: 1.75;
    text-wrap: pretty;
}
.consent__text a, .dialog__intro a {
    color: var(--color-heading);
    text-decoration: underline;
}
.consent__text a:hover, .dialog__intro a:hover {
    color: var(--color-ink-strong);
}
.consent__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-2);
}
.consent__choices {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-2);
}
.consent__close, .dialog__close {
    flex: none;
    color: var(--color-body);
    font-size: var(--fs-caption);
}
.consent__close {
    align-self: start;
    margin-block: calc(var(--space-3) - var(--control-size) / 2) 0;
    margin-inline-end: calc(-1 * var(--space-1));
}
.dialog__close {
    margin-block: calc((1lh - var(--control-size)) / 2);
    margin-inline-end: calc(-1 * var(--space-2));
}
.dialog .consent-button {
    min-block-size: var(--control-size-compact-dialog);
    padding-inline: var(--space-3);
}
.dialog {
    inline-size: min(calc(100% - var(--space-6)), var(--dialog-width));
    max-block-size: calc(100vh - var(--space-6));
    max-block-size: calc(100svh - var(--space-6));
    padding: 0;
    border: 0;
    border-radius: var(--radius-dialog);
    background: var(--color-surface-raised);
    color: var(--color-text);
    box-shadow: var(--shadow-dialog);
    overflow: auto;
}
.dialog::backdrop {
    background: var(--color-backdrop);
}
.dialog__form {
    display: flex;
    flex-direction: column;
    max-block-size: inherit;
}
.dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3) 0;
}
.dialog__title {
    margin: 0;
    outline: none;
    color: var(--color-heading);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
}
.dialog__body {
    flex: 1 1 auto;
    min-block-size: 0;
    overflow-y: auto;
    padding: var(--space-1) var(--space-3) var(--space-2);
}
.dialog__body > :last-child {
    margin-block-end: 0;
}
.dialog__intro {
    margin-block-end: var(--space-2);
    color: var(--color-body);
    font-size: var(--fs-caption);
    line-height: 1.75;
}
.dialog__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-block-start: 1px solid var(--color-header-rule);
}
.dialog__submit {
    margin-inline-start: auto;
}
.consent-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}
.consent-category {
    position: relative;
}
.consent-category + .consent-category {
    border-block-start: 1px solid var(--color-header-rule);
}
.consent-category__summary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-block-size: calc(var(--control-size) + var(--space-1));
    border-radius: var(--radius-control);
    list-style: none;
    cursor: pointer;
    &::-webkit-details-marker {
        display: none;
    }
}
.consent-category--optional .consent-category__summary {
    margin-inline-end: calc(var(--switch-width) + var(--space-2));
}
.consent-category__chevron {
    color: var(--color-body);
    font-size: var(--fs-caption);
    transition: transform var(--dur-out) var(--ease);
}
.consent-category__details[open] .consent-category__chevron {
    transform: rotate(90deg);
}
.consent-category__name {
    min-inline-size: 0;
    font-size: var(--fs-caption-lg);
    overflow-wrap: anywhere;
}
.consent-category__state {
    margin-inline-start: auto;
    color: var(--color-body);
    font-size: var(--fs-caption);
    white-space: nowrap;
}
.consent-category__description {
    margin: 0 0 var(--space-3);
    padding-inline-start: calc(var(--fs-caption) + var(--space-2));
    color: var(--color-body);
    font-size: var(--fs-caption);
    line-height: 1.75;
}
.switch {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-block-size: var(--control-size);
}
.switch__input {
    position: absolute;
    inset: 0;
    z-index: var(--z-raised);
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.switch__track {
    position: relative;
    display: block;
    inline-size: var(--switch-width);
    block-size: var(--switch-height);
    border-radius: var(--radius-pill);
    background: var(--color-switch-off);
    transition: background-color var(--dur-out) var(--ease);
}
.switch__track::before {
    content: "";
    position: absolute;
    inset-block-start: var(--switch-inset);
    inset-inline-start: var(--switch-inset);
    inline-size: calc(var(--switch-height) - 2 * var(--switch-inset));
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: var(--shadow-knob);
    transition: transform var(--dur-out) var(--ease);
}
.switch__input:checked + .switch__track {
    background: var(--color-primary);
}
.switch__input:checked + .switch__track::before {
    transform: translateX(calc(var(--switch-width) - var(--switch-height)));
}
.switch__input:focus-visible + .switch__track {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}
.consent-category__switch {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    block-size: calc(var(--control-size) + var(--space-1));
}
.consent__status {
    margin: 0;
}
.consent-noscript {
    margin: 0;
    padding: 12px var(--space-4);
    font-size: var(--fs-meta);
    text-align: center;
}
@media (prefers-reduced-motion: reduce) {
    :root {
        --dur-out: 0s;
    }
    .is-animated {
        animation: none !important;
    }
    .site-nav, .site-nav__link, .site-nav__sublink {
        transition: none;
    }
    .slideshow__image {
        transition: none !important;
        transform: none !important;
    }
    .button, .hover-shrink, .hover-grow, .system-card, .system-card::before, .system-card__arrow, .client-grid__image {
        transition: none;
    }
    .headline.is-drawn .headline__marker {
        animation-duration: 0s;
    }
    .marquee__track {
        animation: none;
    }
    .marquee__item img {
        transition: none;
    }
    .hover-shrink:hover, .hover-grow:hover, .marquee__item:hover img {
        transform: none;
    }
}
/* Gallery and lightbox */
/* One photo format on every system page: 3:2 crops, one radius and one gap;
   two columns, three when the gallery holds exactly three photos. */
.gallery {
    --gallery-columns: 2;
    --gallery-radius: var(--radius-card);
    --gallery-duration: 800ms;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    @media (min-width: 768px) {
        grid-template-columns: repeat(var(--gallery-columns), 1fr);
        gap: var(--space-5);
    }
    &:has(> :nth-child(3):last-child) {
        --gallery-columns: 3;
    }
}
.gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--gallery-radius);
}
.gallery__image {
    display: block;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform var(--gallery-duration);
    .gallery__item:is(:hover, :focus-visible) & {
        transform: scale(1.1);
    }
}
.gallery__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-gallery-overlay);
    opacity: 0;
    transition: opacity var(--gallery-duration);
    .gallery__item:is(:hover, :focus-visible) & {
        opacity: 1;
    }
}
/* Image viewer: the one native modal <dialog> built by js/main.js. It covers the
   viewport; the bar, arrows and caption sit over the image like the source viewer. */
.lightbox {
    position: fixed;
    inset: 0;
    inline-size: 100%;
    max-inline-size: none;
    block-size: 100%;
    max-block-size: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background-color: var(--color-lightbox);
    color: var(--color-lightbox-ink);
    user-select: none;
    &[open] {
        animation: lightbox-in 0.3s;
    }
    &::backdrop {
        background: transparent;
    }
    & :focus-visible {
        outline-color: var(--color-lightbox-ink);
    }
}
@keyframes lightbox-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.lightbox__figure {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding-block: 70px;
    @media (min-width: 768px) {
        padding: 70px;
    }
}
.lightbox__image {
    display: block;
    inline-size: auto;
    max-inline-size: 100%;
    block-size: auto;
    max-block-size: 100%;
    object-fit: contain;
    transition: opacity 0.3s, transform 0.3s;
    &.is-loading {
        opacity: 0;
    }
}
.lightbox__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: var(--space-4) var(--space-4) 15px;
    color: var(--color-lightbox-ink);
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}
.lightbox__close, .lightbox__tool, .lightbox__nav {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-lightbox-ink);
    font-size: var(--fs-icon-lightbox);
    line-height: 1;
    cursor: pointer;
    &:hover {
        color: var(--color-white);
    }
    & .ph {
        display: block;
    }
}
.lightbox__close {
    position: absolute;
    top: 12.5px;
    right: 18.5px;
    z-index: 2;
    display: grid;
    place-items: center;
    inline-size: 38px;
    block-size: 38px;
}
/* Project extension: full screen and zoom tools of the source viewer. */
.lightbox__tools {
    position: absolute;
    top: 15px;
    right: 73px;
    z-index: 2;
    display: flex;
    gap: 17px;
}
.lightbox__tool {
    display: grid;
    place-items: center;
    inline-size: 38px;
    block-size: 38px;
}
/* Each tool holds its off and on icons; aria-pressed shows the matching one. */
.lightbox__tool .ph + .ph, .lightbox__tool[aria-pressed="true"] .ph:first-child {
    display: none;
}
.lightbox__tool[aria-pressed="true"] .ph + .ph {
    display: block;
}
/* js/main.js controls zoom panning through --lightbox-pan-x and --lightbox-pan-y. */
.lightbox.is-zoomed .lightbox__figure {
    touch-action: none;
}
.lightbox.is-zoomed .lightbox__image {
    transform: translate(var(--lightbox-pan-x, 0px), var(--lightbox-pan-y, 0px)) scale(3);
    cursor: move;
}
.lightbox.is-panning .lightbox__image {
    transition: none;
}
.lightbox__nav {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 20%;
    max-inline-size: 216px;
    @media (min-width: 768px) {
        inline-size: 15%;
    }
}
.lightbox__nav--prev {
    left: 0;
    justify-content: flex-start;
    @media (min-width: 768px) {
        justify-content: center;
    }
}
.lightbox__nav--next {
    right: 0;
    justify-content: flex-end;
    @media (min-width: 768px) {
        justify-content: center;
    }
}
.lightbox__nav .ph {
    box-sizing: content-box;
    padding: var(--space-2);
    background-color: rgb(0 0 0 / 50%);
    @media (min-width: 768px) {
        padding: 0;
        background-color: transparent;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gallery__image, .gallery__overlay, .lightbox__image {
        transition: none;
    }
    .lightbox[open] {
        animation: none;
    }
}
/* Page-specific component values */
.hero {
    --shape-height: 60px;
    /* Navy-deep scrim: dense where the copy sits (bottom left), clear at the top right.
       The top band keeps the transparent header's white links readable. */
    --hero-top-scrim: linear-gradient(rgb(0 0 51 / 50%), rgb(0 0 51 / 0%) calc(var(--header-height) * 2));
    --hero-scrim:
        var(--hero-top-scrim),
        linear-gradient(to top, rgb(0 0 51 / 88%) 0%, rgb(0 0 51 / 62%) 45%, rgb(0 0 51 / 12%) 85%),
        linear-gradient(rgb(0 30 97 / 20%), rgb(0 30 97 / 20%));
    position: relative;
    z-index: var(--z-content);
    isolation: isolate;
    background-color: var(--color-black);
    color: var(--color-white);
    &::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: var(--z-behind);
        background: var(--hero-scrim);
    }
    @media (min-width: 768px) {
        --hero-scrim:
            var(--hero-top-scrim),
            linear-gradient(to top, rgb(0 0 51 / 85%) 0%, rgb(0 0 51 / 45%) 40%, rgb(0 0 51 / 0%) 75%),
            linear-gradient(to right, rgb(0 0 51 / 55%) 0%, rgb(0 0 51 / 0%) 65%),
            linear-gradient(rgb(0 30 97 / 15%), rgb(0 30 97 / 15%));
    }
}
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    /* The hero fills the viewport under the transparent overlay header. */
    min-block-size: 100vh;
    min-block-size: 100svh;
    padding-block: calc(var(--header-height) + var(--space-10)) calc(var(--shape-height) + var(--space-6));
    @media (min-width: 768px) {
        padding-block-end: calc(var(--shape-height) + var(--space-8));
    }
    @media (min-width: 1024px) {
        padding-block-end: calc(var(--shape-height) + var(--space-9));
    }
}
.hero__content {
    max-inline-size: 44rem;
}
.hero__title {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5.5rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-shadow: var(--shadow-text-soft);
    text-transform: none;
    text-wrap: balance;
}
.hero__heading {
    display: flow-root;
    margin-block-end: var(--space-5);
    & .page-hero__rule {
        margin-block-start: var(--space-4);
    }
}
.hero__lead {
    display: flow-root;
    margin-block-end: var(--space-7);
}
.hero__text {
    max-inline-size: 36rem;
    color: rgb(255 255 255 / 88%);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    text-shadow: var(--shadow-text-soft);
    & p {
        margin: 0;
    }
    /* As in the footer and navigation: white text, and the orange underline
       appears only on hover and keyboard focus. */
    & a {
        color: var(--color-white);
        text-decoration-line: underline;
        text-decoration-color: transparent;
        text-decoration-thickness: 1px;
        text-underline-offset: calc(0.2em + 1px);
        text-decoration-skip-ink: auto;
        transition: text-decoration-color 0.3s;
        @media (prefers-reduced-motion: reduce) {
            transition: none;
        }
    }
    & a:hover, & a:focus-visible {
        color: var(--color-white);
        text-decoration-color: var(--color-secondary);
    }
}
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    @media (min-width: 768px) {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
.hero__action {
    inline-size: 100%;
    @media (min-width: 768px) {
        inline-size: auto;
    }
}
.hero__action .button {
    display: flex;
    min-block-size: var(--control-size);
    @media (min-width: 768px) {
        display: inline-flex;
    }
    & .ph {
        transition: translate var(--dur-out) var(--ease);
    }
    &:is(:hover, :focus-visible) .ph {
        translate: 3px 0;
    }
    /* The global navy focus ring disappears on the dark scrim. */
    &:focus-visible {
        outline-color: var(--color-white);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero__action .button .ph {
        transition: none;
    }
}
.services-band {
    --shape-height: 60px;
    position: relative;
    z-index: var(--z-content);
    isolation: isolate;
    padding: var(--space-11) 0;
    background-color: var(--color-sand);
    &::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: var(--z-behind);
        background-color: var(--color-light);
        opacity: 0.9;
    }
    @media (min-width: 768px) {
        padding: var(--space-13) 0;
    }
}
.services-band .fx-layer__image {
    background-image: url("../assets/images/backgrounds/pattern.svg");
}
.services-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-block-size: 700px;
    @media (min-width: 768px) {
        grid-template-columns: 60% 39.959%;
    }
}
.services-band__copy {
    padding: 0;
    @media (min-width: 768px) {
        padding-block: var(--space-2);
    }
}
.services-band__title {
    margin: 0 0 var(--space-4);
    color: var(--color-heading);
    font-family: var(--font-display);
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    & > a {
        color: inherit;
    }
    @media (min-width: 768px) {
        font-size: 50px;
    }
}
.services-band__subtitle {
    margin: 0 0 var(--space-9);
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.2em;
    text-transform: uppercase;
    & > a {
        color: inherit;
    }
    @media (min-width: 768px) {
        line-height: 1;
    }
}
.services-band .service-card {
    --service-card-margin-end: var(--space-7);
    --service-card-pad-mobile: var(--space-7) var(--space-6) 45px;
    --service-card-pad: var(--space-6) var(--space-6) 45px var(--space-7);
    --service-card-gap: var(--space-9);
    --service-card-title-size: 33px;
    --service-card-title-gap: var(--space-3);
}
.services-band__media {
    --figure-size: 400px;
    position: relative;
    display: none;
    padding: var(--space-2);
    @media (min-width: 1024px) {
        display: block;
    }
}
/* A figure is as wide as its image, centered in the column and moved by its
   collage offset. The offset is capped so the image never passes the frame's
   right edge: at most the free half of the column. */
.services-band__figure {
    --figure-free: calc((100% - min(var(--figure-size), 100%)) / 2);
    position: absolute;
    inset-inline-start: calc(var(--figure-free) + min(var(--figure-x), var(--figure-free)));
    top: var(--figure-y);
    inline-size: min(var(--figure-size), 100%);
}
.services-band__figure--first {
    --figure-x: 8px;
    --figure-y: 174px;
}
.services-band__figure--second {
    --figure-x: 78px;
    --figure-y: 359px;
}
.services-band__figure--third {
    --figure-x: 4px;
    --figure-y: 524px;
    @media (min-width: 768px) {
        --figure-x: 13px;
        --figure-y: 538px;
    }
}
.services-band__figure > a {
    display: block;
}
.services-band__image {
    display: inline-block;
    inline-size: var(--figure-size);
    max-inline-size: 100%;
    block-size: auto;
    border-radius: var(--radius-card);
    vertical-align: middle;
}
.cta-band {
    --shape-height: 60px;
    position: relative;
    z-index: var(--z-raised);
    padding: 70px 0 var(--space-11);
    background-image: linear-gradient(180deg, var(--color-secondary) 49%, var(--color-rose) 100%);
    @media (min-width: 768px) {
        padding: var(--space-11) 0 140px;
    }
}
.cta-band > .shape--bottom {
    --shape-fill: var(--color-white);
}
.cta-band__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: var(--space-2);
}
.cta-band__headline {
    align-self: stretch;
    margin: 0.5rem 0 var(--space-8);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 2.7em;
    font-weight: 700;
    line-height: 1.1em;
    text-align: center;
    text-shadow: var(--shadow-text-soft);
    text-transform: uppercase;
    @media (min-width: 768px) {
        margin-block-end: 70px;
        font-size: 55px;
        line-height: 1.2;
    }
}
.cta-band__action {
    inline-size: 100%;
    text-align: center;
    @media (min-width: 768px) {
        inline-size: auto;
    }
}
.cta-band__action .button {
    display: flex;
    @media (min-width: 768px) {
        display: inline-flex;
    }
}
/* The client logos are drawn for white, so the strip and its marquee fades
   stay white in both themes; the divider above runs into it in white too. */
.logo-strip {
    --color-surface: var(--color-white);
    position: relative;
    z-index: var(--z-raised);
    padding-block: var(--space-8);
    background-color: var(--color-surface);
    @media (min-width: 768px) {
        padding-block-end: var(--space-10);
    }
}
.site-main--about {
    --page-hero-image: url("../assets/images/services/odrzavanje.webp");
    --page-hero-image-sm: url("../assets/images/services/odrzavanje-1280.webp");
    --page-hero-intro-pad: 49%;
    --section-pad-block-mobile: 0 var(--space-10);
    --section-title-size-mobile: 2.5em;
    --with-aside-main-gap: 70px;
}
.site-main--about .with-aside__main > .prose {
    margin-block-end: var(--space-4);
}
.certificates {
    margin-block-end: var(--space-8);
}
.certificates__lead {
    margin-block-end: var(--space-4);
    text-align: center;
}
.certificates__link {
    display: inline-block;
}
.certificates__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
    @media (min-width: 768px) {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }
}
.certificates__item {
    text-align: center;
    @media (min-width: 768px) {
        padding: var(--space-2);
    }
}
.site-main--clients {
    --page-hero-image: url("../assets/images/backgrounds/clients-hero.webp");
    --page-hero-image-sm: url("../assets/images/backgrounds/clients-hero-1280.webp");
    --page-hero-intro-pad: 40%;
    --section-pad-block-md: 0 var(--space-10);
    --section-pad-block-mobile: 0 var(--space-10);
}
.site-main--contact {
    --page-hero-image: url("../assets/images/backgrounds/page-hero.webp");
    --page-hero-image-sm: url("../assets/images/backgrounds/page-hero-1280.webp");
    --section-pad-block: var(--space-10) var(--space-12);
    --section-pad-block-mobile: var(--space-8) var(--space-12);
    --map-embed-height: 405px;
}
.site-main--control-body {
    --page-hero-image: url("../assets/images/services/odrzavanje.webp");
    --page-hero-image-sm: url("../assets/images/services/odrzavanje-1280.webp");
    --section-wrap: 800px;
    --section-pad-block: var(--space-10) var(--space-11);
    --icon-list-size: var(--fs-base);
}
.site-main--control-body .prose {
    margin-block-end: var(--space-4);
}
.site-main--control-body .icon-list {
    --icon-list-gap: 0px;
}
.site-main--legal {
    --page-hero-image: url("../assets/images/backgrounds/page-hero.webp");
    --page-hero-image-sm: url("../assets/images/backgrounds/page-hero-1280.webp");
    --page-hero-margin-end: var(--space-8);
    --section-pad-block: var(--space-2) calc(var(--space-8) + var(--space-2));
    --section-wrap: 880px;
    & .notice {
        margin-block-end: var(--space-6);
        padding: var(--space-3) var(--space-4);
        border-inline-start: 4px solid var(--color-secondary);
        background-color: var(--color-light);
    }
    & .prose h3 {
        margin-block: var(--space-4) var(--space-2);
    }
    & .prose h2[id] {
        scroll-margin-block-start: calc(var(--header-height) + var(--space-4));
    }
    & code {
        font-size: 0.9em;
        overflow-wrap: anywhere;
    }
}
.site-main--references .section,
.site-main--current-projects .section {
}
.site-main--references .page-hero {
    --page-hero-image: url("../assets/images/gallery/instalacija-za-gasenje-sprinkler-04.webp");
    --page-hero-image-sm: url("../assets/images/gallery/instalacija-za-gasenje-sprinkler-04-1280.webp");
    --page-hero-intro-pad: 40%;
    --page-hero-title-size-mobile: 3em;
    --page-hero-title-lh-mobile: 1.1;
}
.site-main--current-projects .page-hero {
    --page-hero-image: url("../assets/images/backgrounds/projects-hero.webp");
    --page-hero-image-sm: url("../assets/images/backgrounds/projects-hero-1280.webp");
    --page-hero-intro-pad: 50%;
}
.site-main--current-projects .section {
    --section-pad-block-mobile: var(--space-8) var(--space-8);
}
.site-main--current-projects .section--flush-start-mobile {
    --section-pad-block-mobile: 0px var(--space-8);
}
.project-grid--three-md {
    @media (min-width: 768px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.project-grid--two {
    @media (min-width: 1024px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.project-grid--rounded {
    --project-card-radius: var(--radius-card);
}
.project-card__image--short {
    block-size: 240px;
    object-fit: cover;
}
.site-main--services {
    --page-hero-image: url("../assets/images/services/izvodjenje.webp");
    --page-hero-image-sm: url("../assets/images/services/izvodjenje-1280.webp");
    --page-hero-title-size-mobile: 3em;
    --page-hero-title-lh-mobile: 1.1;
    --page-hero-intro-pad: 55%;
    --section-wrap: 980px;
    --section-pad-block: var(--space-10) 0px;
    --section-pad-block-md: 0px;
    --section-pad-block-mobile: 0px;
    --service-card-pad: var(--space-8) var(--space-8) 55px var(--space-8);
    --service-card-pad-mobile: var(--space-8) var(--space-4);
    --service-card-gap: var(--space-9);
    --service-card-align: start;
    --service-card-title-size: 35px;
    --service-card-title-gap: var(--space-5);
    --service-card-margin-end: var(--space-8);
    --service-card-mobile-align: center;
    --service-card-icon-margin-inline: auto;
    --service-card-icon-size-mobile: 100px;
}
.site-main--services .section--narrow > .container {
    padding-block: var(--space-2);
}
.services-systems {
    @media (min-width: 768px) {
        padding-block: var(--space-2);
    }
}
.site-main--system-archive {
    --system-grid-gap: calc(2 * var(--space-4));
    --page-hero-image: url("../assets/images/gallery/instalacija-za-gasenje-sprinkler-01.webp");
    --page-hero-image-sm: url("../assets/images/gallery/instalacija-za-gasenje-sprinkler-01-1280.webp");
    --page-hero-title-size-mobile: 3em;
    --page-hero-title-lh-mobile: 1.1;
    & .page-hero__title {
        font-weight: 500;
    }
    & .system-grid {
        margin-block-start: -36px;
        padding-block: var(--space-10) var(--space-11);
        @media (min-width: 768px) {
            margin-block-start: 0;
        }
    }
    & .system-grid__cards > .system-card {
        --system-card-title-cap: calc(100cqi - var(--system-card-pads, 95px));
        min-inline-size: 0;
        overflow-wrap: anywhere;
    }
    & .system-card {
        --system-card-pad-mobile: var(--space-8) var(--space-8) 0 45px;
        --system-card-arrow-pull: 25px;
        --system-card-title-size-mobile: 45px;
    }
    & .system-card--wide-pad {
        --system-card-pad-mobile: var(--space-8) var(--space-9) 0 45px;
        --system-card-arrow-pull: 35px;
    }
    & .system-card--mist {
        --system-card-text-pad: 8%;
    }
    & .system-card--inquiry {
        --system-card-text-pad: 17%;
    }
}
.page-hero--sprinkler {
    --page-hero-image: url("../assets/images/gallery/instalacija-za-gasenje-sprinkler-01.webp");
    --page-hero-image-sm: url("../assets/images/gallery/instalacija-za-gasenje-sprinkler-01-1280.webp");
}
.page-hero--mist {
    --page-hero-image: url("../assets/images/gallery/vodena-magla-01.webp");
    --page-hero-image-sm: url("../assets/images/gallery/vodena-magla-01-1280.webp");
}
.page-hero--gas {
    --page-hero-image: url("../assets/images/gallery/sistem-za-gasenje-pozara-gasom-01.webp");
    --page-hero-image-sm: url("../assets/images/gallery/sistem-za-gasenje-pozara-gasom-01-1280.webp");
}
.page-hero--foam {
    --page-hero-image: url("../assets/images/gallery/sistem-za-gasenje-pozara-penom.webp");
    --page-hero-image-sm: url("../assets/images/gallery/sistem-za-gasenje-pozara-penom-1280.webp");
}
.page-hero--detection {
    --page-hero-image: url("../assets/images/gallery/sistem-za-detekciju-i-gasenje-pozara-02.webp");
    --page-hero-image-sm: url("../assets/images/gallery/sistem-za-detekciju-i-gasenje-pozara-02-1280.webp");
}
.site-main--post .page-hero {
    --page-hero-pad-block: calc(var(--space-8) + var(--space-2)) calc(var(--space-12) + var(--space-2));
    --page-hero-breadcrumbs-gap: var(--space-8);
    --shape-height: 65px;
    --page-hero-intro-pad-md: 40%;
    --page-hero-intro-pad: 40%;
    @media (min-width: 768px) {
        --page-hero-pad-block: calc(90px + var(--space-2)) calc(var(--space-13) + var(--space-2));
    }
}
.site-main--post .page-hero__rule {
    margin-block-end: var(--space-1);
    @media (min-width: 768px) {
        margin-block-end: 3px;
    }
}
.site-main--post .section {
    --section-pad-block: var(--space-8) var(--space-8);
    --section-pad-block-md: 0px var(--space-4);
    --section-pad-block-mobile: var(--space-4) var(--space-4);
}
.site-main--post .with-aside {
    --with-aside-main-gap-md: 0px;
}
.site-main--post .with-aside__aside {
    padding: var(--space-2);
}
.post-body {
    display: flex;
    flex-direction: column;
    padding-block: var(--space-2);
}
/* Text, photos and columns follow one rhythm: the same gap between blocks
   and the same space above every subheading. */
.post-body {
    gap: var(--space-8);
}
.post-body__item > :last-child {
    margin-block-end: 0;
}
.post-body .prose > :is(h2, h3) {
    margin-block: var(--space-7) var(--space-3);
    &:first-child {
        margin-block-start: 0;
    }
}
.post-body__image {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-card);
}
.post-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    @media (min-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* System pages: interactive explainers on a solid panel that follows the light
   and dark theme. js/system-demo.js sets data-step, cumulative .is-s1….is-s4
   classes and .is-out (the event is over) on the figure, .is-active on the
   chosen zone or option items and .is-on/.is-out on readouts. Every visual
   state below follows from those. */
.system-demo {
    --sd-surface: var(--color-light);
    --sd-ink: var(--color-heading);
    --sd-muted: var(--color-body);
    --sd-accent: var(--color-secondary-text);
    --sd-fire: var(--color-secondary);
    /* On the light panel water and alarm are darkened to stay above 3:1. */
    --sd-water: color-mix(in srgb, var(--color-cyan) 55%, var(--color-primary));
    --sd-alarm: color-mix(in srgb, var(--color-rose) 75%, var(--color-black));
    /* One neutral fill for controls and one raised fill for the chosen segment. */
    --sd-control: color-mix(in srgb, var(--sd-ink) 8%, transparent);
    --sd-raised: var(--color-white);
    --sd-rule: color-mix(in srgb, var(--sd-ink) 14%, transparent);
    --sd-foam: var(--color-white);
    --sd-foam-ink: color-mix(in srgb, var(--sd-ink) 45%, var(--sd-foam));
    --sd-line: color-mix(in srgb, var(--sd-ink) 35%, transparent);
    --sd-solid: color-mix(in srgb, var(--sd-ink) 85%, transparent);
    margin: 0;
    padding: var(--space-4);
    border-radius: var(--radius-card);
    background: var(--sd-surface);
    color: var(--sd-ink);
    :root[data-theme="dark"] & {
        --sd-surface: var(--color-surface-raised);
        --sd-accent: var(--color-secondary);
        --sd-water: var(--color-cyan);
        --sd-alarm: var(--color-rose);
        --sd-control: color-mix(in srgb, var(--color-white) 8%, transparent);
        --sd-raised: color-mix(in srgb, var(--color-white) 16%, var(--sd-surface));
        --sd-rule: color-mix(in srgb, var(--color-white) 14%, transparent);
        --sd-foam: color-mix(in srgb, var(--color-white) 85%, var(--sd-surface));
        --sd-foam-ink: color-mix(in srgb, var(--color-white) 55%, var(--sd-surface));
    }
    @media (min-width: 768px) {
        padding: var(--space-6);
    }
    @media (forced-colors: active) {
        border: 1px solid CanvasText;
    }
    & [data-option-item]:not(.is-active) {
        display: none;
    }
}
.system-demo__caption {
    display: grid;
    gap: var(--space-1);
    margin-block-end: var(--space-4);
}
.system-demo__eyebrow {
    color: var(--sd-accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.system-demo__title {
    font-family: var(--font-display);
    font-size: 1.9em;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    text-wrap: balance;
}
.system-demo__hint {
    color: var(--sd-muted);
    font-size: var(--fs-small);
    .system-demo:not(.is-ready) & {
        display: none;
    }
}
.system-demo__readouts {
    display: grid;
    margin: 0 0 var(--space-4);
    @media (min-width: 768px) {
        grid-template-columns: var(--sd-readout-columns, repeat(3, minmax(0, 1fr)));
    }
    .system-demo:not(.is-ready) & {
        display: none;
    }
}
/* Compact widths list the readouts as rows split by hairlines; from 768px
   they stand side by side, label above value, split by vertical hairlines. */
.system-demo__readout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1) var(--space-3);
    padding-block: var(--space-2);
    & + & {
        border-block-start: 1px solid var(--sd-rule);
    }
    & dt {
        color: var(--sd-muted);
        font-size: var(--fs-meta);
    }
    & dd {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2);
        margin: 0;
        font-weight: 600;
    }
    @media (min-width: 768px) {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-block: 0;
        padding-inline: var(--space-4);
        &:first-child {
            padding-inline-start: 0;
        }
        & + & {
            border-block-start: 0;
            border-inline-start: 1px solid var(--sd-rule);
        }
    }
}
.system-demo__value {
    display: none;
    align-items: center;
    gap: var(--space-2);
}
.system-demo__value--idle {
    display: inline-flex;
}
.system-demo__readout.is-on {
    & .system-demo__value--idle {
        display: none;
    }
    /* Values stay in the text color to keep 4.5:1 in both themes; the state
       colour lives in the alarm dot and in the drawing. */
    & .system-demo__value--on {
        display: inline-flex;
    }
}
.system-demo__readout.is-out:has(.system-demo__value--out) {
    & .system-demo__value--idle,
    & .system-demo__value--on {
        display: none;
    }
    & .system-demo__value--out {
        display: inline-flex;
    }
}
.system-demo__readout--alarm {
    &.is-on .system-demo__value--on::before {
        content: "";
        inline-size: 8px;
        block-size: 8px;
        border-radius: 50%;
        background: var(--sd-alarm);
        animation: sd-pulse 1.2s ease-in-out infinite;
    }
}
.system-demo__gauge {
    position: relative;
    inline-size: 90px;
    block-size: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: color-mix(in srgb, var(--sd-ink) 15%, transparent);
}
.system-demo__gauge-fill {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: var(--gauge-idle, 12%);
    background: var(--gauge-color, var(--sd-fire));
    transition: inline-size var(--gauge-time, 1.6s) ease-in-out;
    .system-demo__readout.is-on & {
        inline-size: var(--gauge-on, 78%);
    }
    .system-demo__readout.is-out & {
        inline-size: var(--gauge-out, var(--gauge-on, 78%));
        transition-duration: 2s;
    }
}
.system-demo__gauge-limit {
    position: absolute;
    inset-block: 0;
    inset-inline-start: var(--gauge-limit, 70%);
    inline-size: 2px;
    background: var(--sd-ink);
}
.system-demo__gauge-label {
    color: var(--sd-muted);
    font-size: var(--fs-xs);
    font-weight: 400;
}
.system-demo__stage {
    overflow: hidden;
}
.system-demo__svg {
    display: block;
    inline-size: 100%;
    block-size: auto;
    .system-demo.is-ready:has([data-zone-hit]) & {
        cursor: crosshair;
    }
}
/* Shared drawing parts. */
.system-demo__ceiling {
    fill: color-mix(in srgb, var(--sd-ink) 7%, transparent);
}
.system-demo__floor,
.system-demo__line {
    fill: none;
    stroke: var(--sd-line);
    stroke-width: 2;
}
.system-demo__pipe {
    fill: none;
    stroke: color-mix(in srgb, var(--sd-ink) 70%, transparent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.system-demo__pipe--thin {
    stroke-width: 3;
}
.system-demo__solid {
    fill: var(--sd-solid);
    stroke: var(--sd-solid);
    stroke-width: 2;
    stroke-linecap: round;
}
.system-demo__device {
    fill: var(--sd-surface);
    stroke: color-mix(in srgb, var(--sd-ink) 70%, transparent);
    stroke-width: 3;
}
.system-demo__signal,
.system-demo__flow {
    fill: none;
    stroke: var(--sd-alarm);
    stroke-width: 3;
    stroke-dasharray: 10 14;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.3s;
}
.system-demo__flow {
    stroke: var(--sd-water);
}
.system-demo__spray {
    opacity: 0;
    transition: opacity 0.4s;
}
.system-demo__drop {
    stroke: var(--sd-water);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 12 24;
}
.system-demo__plume {
    fill: rgb(255 107 0 / 16%);
    transition: opacity 1.2s;
    .system-demo.is-out & {
        opacity: 0;
    }
}
.system-demo__flame {
    fill: var(--sd-fire);
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transition: transform 1.4s ease-in;
    .system-demo.is-out & {
        transform: scale(0);
    }
}
.system-demo__flame--core {
    fill: var(--color-yellow);
}
/* Sprinkler: only the head above the fire opens. */
.system-demo--sprinkler {
    --sd-readout-columns: 1.4fr 1fr 1.2fr;
    --gauge-out: 30%;
    &:not(.is-s1) {
        & .system-demo__flame {
            transform: scale(0);
        }
        & .system-demo__plume {
            opacity: 0;
        }
    }
    &.is-s1 .system-demo__flame {
        transition-duration: 1.5s;
        transition-timing-function: ease-out;
    }
    &.is-s4 .system-demo__signal {
        opacity: 1;
        animation: sd-signal 0.9s linear infinite;
    }
}
.system-demo__branch {
    stroke: color-mix(in srgb, var(--sd-ink) 70%, transparent);
    stroke-width: 3;
}
.system-demo__bulb {
    fill: var(--sd-alarm);
    transition: opacity 0.15s;
}
.system-demo__glow,
.system-demo__shards {
    opacity: 0;
}
.system-demo__glow {
    fill: var(--sd-alarm);
    transition: opacity 1.4s ease-in;
}
.system-demo__shards {
    fill: none;
    stroke: var(--sd-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
}
.system-demo__cone {
    fill: color-mix(in srgb, var(--sd-water) 18%, transparent);
}
.system-demo__head.is-active {
    .system-demo.is-s1:not(.is-s2) & .system-demo__glow {
        opacity: 0.45;
    }
    .system-demo.is-s2 & .system-demo__bulb {
        opacity: 0;
    }
    .system-demo.is-s2:not(.is-s3) & .system-demo__shards {
        animation: sd-burst 0.6s ease-out both;
    }
    .system-demo.is-s3 & .system-demo__spray {
        opacity: 1;
    }
    .system-demo.is-s3 & .system-demo__drop {
        animation: sd-fall 0.7s linear infinite;
    }
}
/* Water mist: very fine droplets against a conventional sprinkler. */
.system-demo--mist {
    --gauge-idle: 0%;
    --gauge-on: 100%;
    --gauge-limit: 15%;
    --gauge-color: var(--sd-water);
    --gauge-time: 3s;
    &[data-option="mist"] {
        --gauge-on: 15%;
    }
    &.is-s1 .system-demo__spray {
        opacity: 1;
    }
    &.is-s1 .system-demo__drop {
        animation: sd-fall 0.7s linear infinite;
    }
    &.is-s2 .system-demo__cloud {
        transform: scale(1);
    }
    &.is-s3 .system-demo__steam {
        opacity: 1;
        animation: sd-rise 1.6s ease-out infinite;
    }
    &.is-s1 .system-demo__puddle {
        transform: scaleX(1);
    }
}
.system-demo__drop--coarse {
    stroke-width: 4.5;
    stroke-dasharray: 16 26;
}
.system-demo__fog {
    fill: color-mix(in srgb, var(--sd-water) 14%, transparent);
}
.system-demo__cloud {
    transform: scale(0.55, 0.75);
    transform-box: fill-box;
    transform-origin: 50% 0;
    transition: transform 1.2s ease-out;
}
.system-demo__mist {
    fill: var(--sd-water);
    & circle {
        animation: sd-drift 1.8s ease-in-out infinite alternate;
        .system-demo.is-ready:not(.is-s1) & {
            animation: none;
        }
    }
    & circle:nth-child(3n) {
        animation-delay: -0.6s;
    }
    & circle:nth-child(3n + 1) {
        animation-delay: -1.2s;
    }
}
.system-demo__steam {
    fill: none;
    stroke: color-mix(in srgb, var(--sd-ink) 40%, transparent);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 0.6s;
}
.system-demo__puddle {
    fill: color-mix(in srgb, var(--sd-water) 45%, transparent);
    transform: scaleX(0);
    transform-box: fill-box;
    transform-origin: 50% 50%;
    transition: transform 3.2s ease-out;
}
/* Foam: water and concentrate are mixed, foamed with air and laid over the liquid. */
.system-demo--foam {
    &.is-s1 .system-demo__flow {
        opacity: 1;
        animation: sd-signal 0.9s linear infinite;
    }
    &.is-s2 {
        & .system-demo__air {
            opacity: 1;
            animation: sd-signal 0.9s linear infinite;
        }
        & .system-demo__spray {
            opacity: 1;
        }
        & .system-demo__foam-flow {
            animation: sd-fall 0.8s linear infinite;
        }
    }
    &.is-s3 {
        & .system-demo__foam-layer {
            transform: scaleY(1);
        }
        & .system-demo__flame {
            transform: scale(0);
            transition-delay: 0.6s;
        }
        & .system-demo__plume {
            opacity: 0;
            transition-delay: 0.6s;
        }
    }
    &.is-s4 .system-demo__spark {
        animation: sd-spark 1.2s ease-out both;
    }
}
.system-demo__concentrate {
    stroke: var(--sd-foam-ink);
}
.system-demo__air {
    fill: none;
    stroke: var(--sd-line);
    stroke-width: 2.5;
    stroke-dasharray: 6 8;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 0.3s;
}
.system-demo__liquid {
    fill: rgb(255 107 0 / 22%);
}
.system-demo__foam-layer {
    fill: var(--sd-foam);
    stroke: var(--sd-foam-ink);
    stroke-width: 2;
    transform: scaleY(0);
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transition: transform 1.4s ease-out;
}
.system-demo__bubbles {
    fill: url("#system-demo-bubbles");
    stroke: none;
}
.system-demo__bubble {
    fill: none;
    stroke: var(--sd-foam-ink);
    stroke-width: 1.5;
}
.system-demo__foam-flow {
    fill: none;
    stroke: var(--sd-foam-ink);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 4 14;
}
.system-demo__spark {
    fill: none;
    stroke: var(--sd-fire);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: 50% 50%;
}
/* Gas: stored outside the room, it fills the room evenly and is vented after. */
.system-demo--gas {
    --gauge-idle: 90%;
    --gauge-on: 25%;
    --gauge-out: 90%;
    --gauge-color: var(--sd-water);
    --gauge-time: 2s;
    &.is-s1:not(.is-s3) .system-demo__flow {
        opacity: 1;
        animation: sd-signal 0.9s linear infinite;
    }
    &.is-s1 .system-demo__puff {
        transform: scale(1);
        opacity: 1;
    }
    &.is-s2 :is(.system-demo__gas, .system-demo__gas-dots) {
        opacity: 1;
    }
    &.is-s3 {
        & .system-demo__flame {
            transform: scale(0);
            transition-duration: 1.2s;
        }
        & .system-demo__plume {
            opacity: 0;
        }
        & .system-demo__puff {
            opacity: 0;
        }
    }
    &.is-s4 {
        & :is(.system-demo__gas, .system-demo__gas-dots) {
            opacity: 0;
            transition-duration: 1.6s;
        }
        & .system-demo__vent-flow {
            opacity: 1;
            animation: sd-signal 0.9s linear infinite;
        }
    }
}
.system-demo__wall {
    fill: color-mix(in srgb, var(--sd-ink) 30%, transparent);
}
.system-demo__rack {
    fill: color-mix(in srgb, var(--sd-ink) 7%, transparent);
}
.system-demo__rack-front {
    fill: none;
    stroke: color-mix(in srgb, var(--sd-ink) 55%, transparent);
    stroke-width: 2;
    & .system-demo__slot {
        stroke-width: 4;
        stroke: color-mix(in srgb, var(--sd-ink) 40%, transparent);
    }
}
.system-demo__gas {
    fill: color-mix(in srgb, var(--sd-water) 14%, transparent);
    opacity: 0;
    transition: opacity 1.8s ease-out;
}
.system-demo__gas-dots {
    fill: var(--sd-water);
    opacity: 0;
    transition: opacity 1.8s ease-out;
    & circle {
        animation: sd-drift 2.4s ease-in-out infinite alternate;
    }
    & circle:nth-child(2n) {
        animation-delay: -1.2s;
    }
}
.system-demo__puff {
    fill: color-mix(in srgb, var(--sd-water) 22%, transparent);
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: 50% 0;
    transition: transform 1s ease-out, opacity 0.8s;
}
.system-demo__vent-flow {
    fill: none;
    stroke: var(--sd-water);
    stroke-width: 3;
    stroke-dasharray: 10 14;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 0.3s;
}
/* Detection: detector, signal to the control panel, evaluation, actions. */
.system-demo--detection {
    &.is-s4 .system-demo__led {
        fill: var(--led-on);
    }
}
.system-demo__room {
    fill: transparent;
    transition: fill 0.6s;
    .system-demo.is-s1 &.is-active {
        fill: rgb(255 107 0 / 8%);
    }
    .system-demo.is-out &.is-active {
        fill: transparent;
    }
}
.system-demo__detector {
    & .system-demo__device {
        stroke-width: 2.5;
    }
    & .system-demo__dot {
        fill: color-mix(in srgb, var(--sd-ink) 70%, transparent);
        transition: fill 0.3s;
    }
    & .system-demo__ring {
        fill: none;
        stroke: var(--sd-alarm);
        stroke-width: 2.5;
        opacity: 0;
        transform-box: fill-box;
        transform-origin: 50% 50%;
    }
    .system-demo.is-s1 &.is-active {
        & .system-demo__dot {
            fill: var(--sd-alarm);
        }
        & .system-demo__ring {
            animation: sd-ring 1.2s ease-out infinite;
        }
    }
    .system-demo.is-out &.is-active .system-demo__ring {
        animation: none;
    }
}
.system-demo__wire {
    fill: none;
    stroke: color-mix(in srgb, var(--sd-ink) 25%, transparent);
    stroke-width: 2;
    stroke-linejoin: round;
}
.system-demo--detection.is-s2 .system-demo__signal.is-active {
    opacity: 1;
    animation: sd-signal 0.9s linear infinite;
}
.system-demo__screen {
    fill: color-mix(in srgb, var(--sd-ink) 10%, transparent);
    transition: fill 0.3s;
    .system-demo.is-s3 & {
        fill: color-mix(in srgb, var(--sd-alarm) 25%, transparent);
        animation: sd-pulse 1s ease-in-out 2;
    }
}
.system-demo__screen-line {
    stroke: var(--sd-alarm);
    stroke-width: 4;
    stroke-linecap: round;
    opacity: 0;
    transition: opacity 0.3s;
    .system-demo.is-s3 & {
        opacity: 1;
    }
}
.system-demo__led {
    fill: color-mix(in srgb, var(--sd-ink) 20%, transparent);
    transition: fill 0.3s;
    &:nth-of-type(2) {
        transition-delay: 0.35s;
    }
    &:nth-of-type(3) {
        transition-delay: 0.7s;
    }
}
.system-demo__led--alarm {
    --led-on: var(--sd-alarm);
}
.system-demo__led--water {
    --led-on: var(--sd-water);
}
.system-demo__led--fire {
    --led-on: var(--sd-fire);
}
.system-demo__smoke {
    fill: color-mix(in srgb, var(--sd-ink) 16%, transparent);
    & circle {
        animation: sd-drift 2s ease-in-out infinite alternate;
    }
    .system-demo.is-out & {
        opacity: 0;
        transition: opacity 1.2s;
    }
}
.system-demo__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-block: var(--space-3) var(--space-4);
    font-size: var(--fs-small);
    &[hidden] {
        display: none;
    }
}
.system-demo__controls-label {
    color: var(--sd-muted);
}
.system-demo__choices {
    display: grid;
    grid-auto-columns: minmax(44px, 1fr);
    grid-auto-flow: column;
    gap: 2px;
    padding: 2px;
    border-radius: calc(var(--radius-control) + 2px);
    background: var(--sd-control);
}
.system-demo__choice,
.system-demo__replay {
    min-inline-size: 44px;
    min-block-size: 44px;
    padding-inline: var(--space-3);
    border: 0;
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--sd-ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}
.system-demo__choice:hover:not([aria-pressed="true"]) {
    background: var(--sd-control);
}
.system-demo__choice[aria-pressed="true"] {
    background: var(--sd-raised);
    box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
    @media (forced-colors: active) {
        outline: 2px solid Highlight;
    }
}
.system-demo__replay {
    margin-inline-start: auto;
    padding-inline: var(--space-4);
    background: var(--sd-control);
    &:hover {
        background: color-mix(in srgb, var(--sd-ink) 14%, transparent);
    }
}
.system-demo__steps {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sd-step;
    @media (min-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    @media (min-width: 1024px) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.system-demo__step {
    padding-block-start: var(--space-2);
    border-block-start: 3px solid var(--sd-rule);
    color: var(--sd-muted);
    font-size: var(--fs-small);
    line-height: 1.45;
    text-wrap: pretty;
    counter-increment: sd-step;
    transition: border-color 0.3s, color 0.3s;
    &::before {
        content: counter(sd-step, decimal-leading-zero);
        display: block;
        color: var(--sd-muted);
        font-size: var(--fs-xs);
        font-weight: 600;
    }
    & strong {
        display: block;
        margin-block-end: 2px;
        color: var(--sd-ink);
    }
    &[aria-current="step"] {
        border-color: var(--sd-fire);
        color: var(--sd-ink);
        &::before {
            color: var(--sd-accent);
        }
    }
    &.is-done {
        border-color: var(--sd-fire);
    }
}
.system-demo__status {
    margin: var(--space-3) 0 0;
    font-size: var(--fs-small);
    &:empty {
        display: none;
    }
}
.system-demo__note {
    margin: var(--space-2) 0 0;
    color: var(--sd-muted);
    font-size: var(--fs-xs);
}
@keyframes sd-fall {
    from { stroke-dashoffset: 36; }
    to { stroke-dashoffset: 0; }
}
@keyframes sd-signal {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}
@keyframes sd-burst {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes sd-pulse {
    50% { opacity: 0.35; }
}
@keyframes sd-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(3px, 8px); }
}
@keyframes sd-rise {
    from { opacity: 0.9; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-28px); }
}
@keyframes sd-spark {
    0% { opacity: 0; transform: scale(0.4); }
    25% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(0.2); }
}
@keyframes sd-ring {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(2.6); }
}
@media (prefers-reduced-motion: reduce) {
    .system-demo *,
    .system-demo *::before {
        animation: none !important;
        transition: none !important;
    }
}
/* System pages: live simulations straight on the page, no panel. Each event
   starts in another zone or shows the next option; js/live-demo.js sets the
   stage classes, the active zone or option and the current caption item. On the
   sprinkler page compact widths crop the room to its three middle heads
   (x 150–650). */
.system-demo--live {
    --sd-surface: var(--color-surface);
    padding: 0;
    border-radius: 0;
    background: none;
    :root[data-theme="dark"] & {
        --sd-surface: var(--color-surface);
    }
    @media (forced-colors: active) {
        border: 0;
    }
    & .system-demo__svg {
        aspect-ratio: 800 / 360;
        cursor: auto;
    }
    &.system-demo--sprinkler .system-demo__svg {
        @media (max-width: 767px) {
            aspect-ratio: 500 / 360;
        }
    }
    & .system-demo__caption {
        display: grid;
        gap: var(--space-3);
        margin: var(--space-4) 0 0;
    }
}
.system-demo__lines {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--fs-small);
    line-height: 1.5;
    & > li {
        padding-inline-start: var(--space-3);
        border-inline-start: 2px solid var(--sd-rule);
        color: var(--sd-muted);
        text-wrap: pretty;
        transition: color 0.4s, border-color 0.4s;
    }
    /* The item for the stage on screen gets the text colour and an orange rule. */
    & > .is-current {
        border-color: var(--sd-fire);
        color: var(--sd-ink);
    }
}
.system-demo--live .system-demo__note {
    margin: 0;
}
.inquiry {
    --section-wrap: 680px;
    --section-pad-block-mobile: var(--space-6) var(--space-8);
    --section-pad-block: var(--space-8) var(--space-12);
    --section-title-color: var(--color-secondary);
    --section-title-size: var(--fs-page-title);
    --section-title-gap: 22px;
    /* On desktop the form column is 600px wide, centred by the container. */
    @media (min-width: 1024px) {
        --section-wrap: 600px;
    }
}
.inquiry__inner {
    display: flex;
    flex-direction: column;
    @media (min-width: 768px) {
        padding-block: var(--space-2);
    }
}
.inquiry__intro {
    margin-block-end: var(--space-6);
    & > p {
        margin-block-end: 0;
    }
}
.inquiry__note {
    margin-block-end: var(--space-1);
    font-size: var(--fs-xs);
    line-height: 1.4em;
    text-align: end;
}
.inquiry__mark {
    color: var(--color-red);
}
.inquiry__notice > p {
    font-size: var(--fs-xs);
}
.inquiry__notice a {
    text-decoration-line: underline;
    text-underline-offset: 0.15em;
}
/* Inquiry form (template form API). Values measured on the original form. */
.contact-form {
    --form-control-border: var(--color-control-border);
    --form-control-border-active: var(--color-heading);
    --form-control-ink: var(--color-control-ink);
    --form-error: #d9534f;
    /* Three steps of space group the form: label to field, field to field,
       section to section (contact, interests, message, consent and submit). */
    --form-row-gap: 16px;
    --form-section-gap: 32px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--form-section-gap) var(--space-4);
    min-inline-size: 0;
    margin-block-end: var(--space-2);
    & > * {
        grid-column: 1 / -1;
    }
    /* From 768px the consent and the submit button share the last row:
       consent on the leading edge, submit on the trailing edge. */
    @media (min-width: 768px) {
        grid-template-columns: minmax(0, 1fr) auto;
        & > .form-field:has(> .choice--consent) {
            grid-column: 1;
            align-self: center;
        }
    }
}
.form-grid {
    display: grid;
    gap: var(--form-row-gap) var(--space-4);
    @media (min-width: 768px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.form-field {
    min-inline-size: 0;
}
.form-field__label {
    display: block;
    padding-block-end: 6px;
    color: var(--color-heading);
    /* 13px at a 320px viewport up to 14px at 1280px. */
    font-size: clamp(0.8125rem, 0.7917rem + 0.1042vw, 0.875rem);
    font-weight: 500;
    line-height: 1.3;
    &[for] {
        cursor: pointer;
    }
}
.form-field__mark {
    color: var(--color-red);
}
.form-field__error {
    margin: var(--space-2) 0 0;
    color: var(--form-error);
    font-size: 1em;
    line-height: 1;
}
/* Use at least 16px on touch screens to prevent iOS focus zoom. */
.form-control {
    display: block;
    inline-size: 100%;
    min-block-size: 40px;
    margin: 0;
    padding: var(--space-1) 14px;
    border: 1px solid var(--form-control-border);
    border-radius: var(--radius-control);
    background-color: var(--color-surface-raised);
    color: var(--form-control-ink);
    font-family: inherit;
    font-size: max(1rem, 16px);
    line-height: 1.4;
    scroll-margin-block-start: calc(var(--header-height) + var(--space-8));
    transition: border-color 0.2s;
    &::placeholder {
        color: inherit;
        font-family: inherit;
        opacity: 0.6;
    }
    &:hover,
    &:focus {
        border-color: var(--form-control-border-active);
    }
    &[aria-invalid="true"] {
        border-color: var(--form-error);
    }
    @media (prefers-reduced-motion: reduce) {
        transition: none;
    }
    @media (min-width: 768px) and (hover: hover) and (pointer: fine) {
        font-size: 14px;
    }
}
input.form-control {
    padding: 8px 16px;
}
textarea.form-control {
    block-size: 180px;
    overflow: auto;
    resize: vertical;
}
/* One option per row: a drawn box beside its label. The native checkbox stays
   (keyboard, validation, assistive technology); only its look changes. The row
   sets the line height, so the box (font: inherit) is centred on the first
   line (css.md §8), also when the label wraps. */
.choice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding-block: 3px;
    font-size: 14px;
    line-height: 1.4;
}
.choice__input {
    --choice-size: 18px;
    flex: none;
    display: grid;
    place-content: center;
    inline-size: var(--choice-size);
    block-size: var(--choice-size);
    margin: calc((1lh - var(--choice-size)) / 2) 0 0;
    padding: 0;
    border: 1px solid var(--form-control-border);
    border-radius: 4px;
    background-color: var(--color-surface-raised);
    font: inherit;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s, border-color 0.2s;
    /* The tick: two borders of a rotated box, scaled in when checked. The focus
       ring comes from the global :focus-visible rule. */
    &::before {
        content: "";
        inline-size: 5px;
        block-size: 10px;
        border: solid var(--color-secondary-large);
        border-width: 0 2px 2px 0;
        transform: translateY(-1px) rotate(45deg) scale(0);
        transition: transform 0.15s;
    }
    /* Checked keeps the white box and draws the border and tick in
       --color-secondary-large (3.42:1 on white, above the 3:1 control minimum;
       #FF6B00 is 2.86:1, so it stays a hover cue only). */
    &:hover {
        border-color: var(--color-secondary);
    }
    &:checked {
        border-color: var(--color-secondary-large);
    }
    &:checked::before {
        transform: translateY(-1px) rotate(45deg) scale(1);
    }
    &:disabled {
        cursor: default;
        opacity: 0.6;
    }
    &[aria-invalid="true"] {
        border-color: var(--form-error);
    }
    @media (prefers-reduced-motion: reduce) {
        transition: none;
        &::before {
            transition: none;
        }
    }
}
.choice__label {
    color: var(--color-text);
    cursor: pointer;
    & a {
        text-decoration: underline;
        text-underline-offset: 2px;
    }
}
.form-field[aria-invalid="true"] .choice__input {
    border-color: var(--form-error);
}
/* Submit sits on the trailing edge: under the consent on phones, beside it from 768px. */
.contact-form__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-block-start: calc(var(--form-row-gap) - var(--form-section-gap));
    @media (min-width: 768px) {
        grid-column: 2;
        margin-block-start: 0;
    }
}
.contact-form__submit {
    --button-bg: var(--color-secondary-surface);
    min-block-size: 40px;
    &:disabled {
        cursor: default;
    }
}
/* Ready and pending texts stay in the accessibility tree; only errors are shown. */
.contact-form .notice--info {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.contact-form .notice--error {
    margin: calc(var(--space-2) - var(--form-section-gap)) 0 0;
    color: var(--form-error);
    font-size: 1em;
    line-height: 1;
}
.site-main--thank-you {
    --notice-panel-veil: 0.85;
    --notice-panel-min: 800px;
    --notice-panel-min-mobile: 80vh;
    --notice-panel-title-size: 40px;
}
html:lang(ru) .hero__title,
html:lang(ru) .page-hero__title,
html:lang(ru) .section-title,
html:lang(ru) .system-card__title,
html:lang(ru) .system-grid__title,
html:lang(ru) .service-card__title,
html:lang(ru) .services-band__title,
html:lang(ru) .cta-band__headline {
    overflow-wrap: anywhere;
}
html:lang(ru) .hero__title {
    @media (min-width: 1024px) {
        overflow-wrap: normal;
    }
}
html:lang(ru) .system-grid__cards > .system-card {
    min-inline-size: 0;
}
/* The home intro title: ПОЖАРОТУШЕНИЯ is about ten font sizes wide in the
   fallback face, so the size follows the available width and the word stays whole. */
html:lang(ru) .system-grid--lead .system-grid__title {
    font-size: clamp(1.625rem, 9.5vw - 0.25rem, 3rem);
    @media (min-width: 1024px) {
        font-size: clamp(2.75rem, 1.45vw + 1.9rem, 3.25rem);
    }
}
/* Russian menu labels are longer and do not fit one desktop row below 1150px.
   There the header keeps the menu button and the phone/tablet menu panel
   (js/main.js reads --bp-nav); without scripting the desktop list stays. */
html:lang(ru) {
    --bp-nav: 1150px;
}
@media (min-width: 1024px) and (max-width: 1149px) and (scripting: enabled) {
    html:lang(ru) {
        & .site-header__toggle {
            display: grid;
        }
        & .site-nav {
            display: none;
        }
        & .mobile-overlay:not([hidden]) {
            display: block;
        }
        & .mobile-menu:not([hidden]) {
            display: flex;
        }
    }
}
/* From 1150px one size smaller text and closer links keep the Russian row on
   one line; at 1200px the default fits. */
@media (min-width: 1150px) and (max-width: 1199px) {
    html:lang(ru) .site-nav__link {
        padding-inline-start: 3px;
        font-size: 13px;
    }
    html:lang(ru) .site-nav__item:not(.site-nav__item--dropdown) > .site-nav__link {
        padding-inline-end: 3px;
    }
}
html:lang(ru) .headline__dynamic,
html:lang(ru) .headline__text {
    max-inline-size: 100%;
}
/* Use the stable small viewport height on phones, with 80vh as fallback. */
@supports (min-height: 1svh) {
    .site-main--thank-you {
        --notice-panel-min-mobile: 80svh;
    }
}
/* Forced colors (Windows contrast themes) drop backgrounds and shadows: floating layers get a
   system-colour edge, and the switch draws its track and knob in system colours. */
@media (forced-colors: active) {
    .consent,
    .dialog {
        border: 1px solid CanvasText;
    }
    /* An inset ring instead of a border keeps the knob travel unchanged. */
    .switch__track {
        forced-color-adjust: none;
        background: ButtonFace;
        box-shadow: inset 0 0 0 1px ButtonText;
    }
    .switch__track::before {
        background: ButtonText;
        box-shadow: none;
    }
    .switch__input:checked + .switch__track {
        background: Highlight;
        box-shadow: none;
    }
    .switch__input:checked + .switch__track::before {
        background: HighlightText;
    }
    .switch__input:focus-visible + .switch__track {
        outline-color: CanvasText;
    }
    /* The drawn box loses its fill; the system checkbox shows the state instead. */
    .choice__input {
        appearance: auto;
        &::before {
            content: none;
        }
    }
}
