/*
 * Główny arkusz strony KoOperator.
 * Projekt nie pobiera fontów, ikon ani innych zasobów z zewnętrznych serwerów.
 * Własny font można później dodać z assets/fonts/ i podmienić --font-body / --font-display.
 */

:root {
    color-scheme: light;
    --ink: #000000;
    --ink-soft: #191919;
    --ink-muted: #636363;
    --paper: #ffffff;
    --paper-raised: #ffffff;
    --concrete: #f1f1f1;
    --concrete-dark: #d8d8d8;
    --accent: #eea000;
    --accent-strong: #855900;
    --accent-hover: #d68f00;
    --accent-pale: #fff0c7;
    --danger: #ad2929;
    --success: #237145;
    --line: rgba(0, 0, 0, 0.18);
    --line-light: rgba(255, 255, 255, 0.18);
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Bahnschrift Condensed", "Arial Narrow", "Franklin Gothic Medium", Arial, sans-serif;
    --shell: 92rem;
    --gutter: clamp(1rem, 3.4vw, 3.5rem);
    --section-space: clamp(4.75rem, 9vw, 9rem);
    --header-height: 5.25rem;
    --radius-small: 0.25rem;
    --shadow-large: 0 1.75rem 4rem rgba(0, 0, 0, 0.2);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-padding-top: calc(var(--header-height) + 1.25rem);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.96rem + 0.16vw, 1.125rem);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

a {
    color: inherit;
    text-underline-offset: 0.18em;
}

p,
h1,
h2,
h3,
h4,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ol,
ul {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.02;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

h1 {
    font-size: clamp(3.25rem, 8vw, 7.75rem);
    font-weight: 800;
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2.35rem, 5vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
}

h3 {
    font-size: clamp(1.7rem, 2.6vw, 2.8rem);
    letter-spacing: -0.03em;
}

h4 {
    font-size: clamp(1.08rem, 1.3vw, 1.25rem);
}

::selection {
    background: var(--accent);
    color: var(--ink);
}

:focus-visible {
    outline: 0.18rem solid #fff;
    outline-offset: 0.12rem;
    box-shadow: 0 0 0 0.38rem var(--ink);
}

[hidden] {
    display: none !important;
}

.shell,
.container {
    width: min(100%, calc(var(--shell) + (2 * var(--gutter))));
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-inline-start: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-inline-end: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.8rem 1rem;
    translate: 0 -160%;
    background: var(--ink);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    transition: translate 160ms ease;
}

.skip-link:focus {
    translate: 0;
}

.section {
    padding-block: var(--section-space);
}

.section-index,
.section-kicker,
.eyebrow,
.machine-type {
    font-size: clamp(0.72rem, 0.69rem + 0.1vw, 0.82rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
}

.section-index,
.section-kicker {
    color: var(--accent-strong);
}

.section-heading {
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-heading h2 {
    max-width: 13ch;
    margin-top: 0.65rem;
}

.section-heading-split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
}

.section-heading-split > p {
    max-width: 34rem;
    color: var(--ink-muted);
}

.theme-dark {
    background: var(--ink);
    color: var(--paper);
}

.theme-dark .section-index {
    color: var(--accent);
}

.theme-dark .section-heading-split > p {
    color: rgba(255, 255, 255, 0.68);
}

/* Przyciski i odnośniki */
.button {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.78rem 1.3rem;
    border: 0.125rem solid currentColor;
    border-radius: var(--radius-small);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, translate 180ms ease;
}

.button img {
    flex: 0 0 auto;
}

.button:hover {
    translate: 0 -0.125rem;
}

.button-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.button-primary:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.button-dark {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.button-dark:hover {
    border-color: var(--ink-soft);
    background: var(--ink-soft);
}

.text-link {
    display: inline-flex;
    max-width: 100%;
    min-width: 0;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 0.125rem solid currentColor;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.text-link img {
    transition: translate 180ms ease;
}

.text-link:hover img {
    translate: 0.18rem 0.18rem;
}

.text-link-light {
    color: #fff;
}

/* Header */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    min-height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, 0.98);
    transition: min-height 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
    min-height: 4.35rem;
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: grid;
    min-width: 0;
    min-height: inherit;
    grid-template-columns: minmax(7.25rem, auto) 1fr auto;
    gap: clamp(0.8rem, 1.7vw, 1.8rem);
    align-items: center;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
}

.brand > img {
    width: clamp(6.6rem, 7.4vw, 7.5rem);
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 1.15vw, 1.35rem);
}

.desktop-nav a {
    position: relative;
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    font-size: clamp(0.78rem, 0.7rem + 0.16vw, 0.9rem);
    font-weight: 720;
    text-decoration: none;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0.32rem;
    left: 0;
    height: 0.125rem;
    scale: 0 1;
    background: var(--accent-strong);
    content: "";
    transform-origin: right;
    transition: scale 220ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="location"]::after,
.desktop-nav a[aria-current="page"]::after {
    scale: 1 1;
    transform-origin: left;
}

.button-header {
    min-height: 2.85rem;
    padding-inline: 1.05rem;
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.button-header:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
}

.menu-toggle {
    display: none;
    width: 3rem;
    min-height: 3rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 0.125rem;
    margin-block: 0.25rem;
    background: currentColor;
}

.mobile-menu {
    width: min(100%, 27rem);
    height: 100dvh;
    max-height: none;
    margin: 0 0 0 auto;
    padding: clamp(1.15rem, 4vw, 2rem);
    padding-top: max(clamp(1.15rem, 4vw, 2rem), env(safe-area-inset-top, 0px));
    padding-right: max(clamp(1.15rem, 4vw, 2rem), env(safe-area-inset-right, 0px));
    padding-bottom: max(clamp(1.15rem, 4vw, 2rem), env(safe-area-inset-bottom, 0px));
    padding-left: max(clamp(1.15rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
    border: 0;
    background: var(--paper);
    color: var(--ink);
    opacity: 0;
    translate: 100% 0;
    transition: opacity 240ms ease, translate 360ms var(--ease-out), display 360ms allow-discrete, overlay 360ms allow-discrete;
}

.mobile-menu[open] {
    display: flex;
    opacity: 1;
    translate: 0;
    flex-direction: column;
}

@starting-style {
    .mobile-menu[open] {
        opacity: 0;
        translate: 100% 0;
    }
}

.mobile-menu::backdrop {
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 300ms ease, display 300ms allow-discrete, overlay 300ms allow-discrete;
}

.mobile-menu[open]::backdrop {
    opacity: 1;
}

@starting-style {
    .mobile-menu[open]::backdrop {
        opacity: 0;
    }
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.mobile-menu-head p {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.icon-button {
    display: inline-grid;
    width: 3rem;
    min-height: 3rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: transparent;
    color: inherit;
}

.mobile-nav {
    display: grid;
    margin-block: auto;
}

.mobile-nav a {
    display: grid;
    min-height: 4rem;
    grid-template-columns: 2.2rem 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 6vw, 2rem);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.mobile-nav a span {
    color: var(--accent-strong);
    font-family: var(--font-body);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
}

.mobile-menu-call {
    width: 100%;
    margin-top: 1.25rem;
}

.noscript-nav {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    padding: 0.8rem var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--paper-raised);
    font-weight: 750;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(238, 160, 0, 0.08), transparent 31%),
        var(--paper);
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: max(var(--gutter), calc((100vw - var(--shell)) / 2));
    width: 1px;
    background: var(--line);
    content: "";
}

.hero-grid {
    display: grid;
    min-width: 0;
    min-height: min(49rem, calc(100svh - var(--header-height) - 4.4rem));
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    padding-block: clamp(2.75rem, 6vw, 5.5rem);
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-left: clamp(1rem, 2.4vw, 2.25rem);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}

.eyebrow span {
    width: 2.1rem;
    height: 0.2rem;
    background: var(--accent);
}

.hero h1 {
    max-width: 8.6ch;
}

.hero h1 em {
    display: block;
    margin-top: 0.08em;
    color: var(--accent-strong);
    font-style: normal;
}

.hero-lead {
    width: 100%;
    min-width: 0;
    max-width: 39rem;
    margin-top: clamp(1.4rem, 3vw, 2.4rem);
    color: var(--ink-muted);
    font-size: clamp(1.08rem, 1rem + 0.4vw, 1.35rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem clamp(1rem, 2vw, 1.7rem);
    align-items: center;
    margin-top: 2rem;
    min-width: 0;
}

.hero-note {
    max-width: 32rem;
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 0.2rem solid var(--accent);
    color: var(--ink-muted);
    font-size: 0.92rem;
}

.hero-media {
    position: relative;
    min-width: 0;
    align-self: stretch;
    min-height: 30rem;
    overflow: hidden;
    background: #000;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 -7rem 7rem rgba(0, 0, 0, 0.25);
    content: "";
    pointer-events: none;
}

.hero-media picture,
.hero-media img {
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
}

.hero-media figcaption {
    position: absolute;
    z-index: 2;
    right: 1.2rem;
    bottom: 1.2rem;
    left: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 730;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-media figcaption span {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    background: var(--accent);
    color: var(--ink);
}

.hero-corner {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    width: clamp(3rem, 7vw, 6rem);
    aspect-ratio: 1;
    border-top: 0.45rem solid var(--accent);
    border-right: 0.45rem solid var(--accent);
    pointer-events: none;
}

.scope-strip {
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: #fff;
}

.scope-track {
    display: grid;
    min-width: 0;
    min-height: 4.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
}

.scope-track span {
    position: relative;
    display: flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    padding-inline: 0.75rem;
    font-size: clamp(0.72rem, 0.7rem + 0.12vw, 0.84rem);
    font-weight: 760;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.scope-track span:not(:last-child)::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-light);
    content: "";
}

/* Sprzęt */
.equipment-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.equipment-section::after {
    position: absolute;
    z-index: -1;
    top: 0;
    right: max(var(--gutter), calc((100vw - var(--shell)) / 2));
    bottom: 0;
    width: 1px;
    background: var(--line-light);
    content: "";
}

.equipment-showcase {
    border-bottom: 1px solid var(--line-light);
}

.machine {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
    border-top: 1px solid var(--line-light);
}

.machine + .machine {
    margin-top: clamp(3rem, 7vw, 7rem);
}

.machine-secondary {
    grid-template-columns: minmax(19rem, 0.7fr) minmax(0, 1.3fr);
}

.machine-secondary .machine-media {
    grid-column: 2;
}

.machine-secondary .machine-copy {
    grid-row: 1;
    grid-column: 1;
    border-right: 0;
    border-left: 1px solid var(--line-light);
}

.machine-media {
    position: relative;
    min-height: clamp(21rem, 42vw, 38rem);
    overflow: hidden;
    background: #252525;
}

.machine-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 700ms var(--ease-out);
}

.machine:hover .machine-media img {
    scale: 1.025;
}

.machine-media figcaption {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.45rem 0.65rem;
    background: rgba(0, 0, 0, 0.88);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 730;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.machine-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 4rem);
    border-right: 1px solid var(--line-light);
}

.machine-type {
    color: var(--accent);
}

.machine-copy h3 {
    margin-block: 0.55rem 1rem;
    overflow-wrap: anywhere;
}

.machine-copy > p:not(.machine-type) {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}

.offer-grid article {
    min-width: 0;
    min-height: clamp(10rem, 15vw, 14rem);
    padding: clamp(1.15rem, 2.5vw, 2rem);
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    transition: background-color 180ms ease;
}

.offer-grid article:hover {
    background: rgba(238, 160, 0, 0.08);
}

.offer-grid span {
    display: block;
    margin-bottom: clamp(2.2rem, 5vw, 4.5rem);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.offer-grid h3 {
    max-width: 17ch;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.28rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.equipment-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-light);
}

.equipment-question > p {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

/* Realizacje */
.gallery-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
    column-gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
}

.gallery-heading .section-index {
    grid-column: 1 / -1;
    margin-bottom: 0.65rem;
}

.gallery-heading h2 {
    max-width: 14ch;
}

.gallery-heading > p:last-child {
    color: var(--ink-muted);
}

.gallery-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-auto-rows: clamp(12.5rem, 17vw, 18rem);
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.3vw, 1.15rem);
}

.gallery-item {
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--ink-soft);
    color: #fff;
    text-align: left;
}

.gallery-item:nth-child(1) {
    grid-row: 1;
    grid-column: 1 / 8;
}

.gallery-item:nth-child(2) {
    grid-row: 1 / span 2;
    grid-column: 8 / 13;
}

.gallery-item:nth-child(3) {
    grid-row: 2;
    grid-column: 1 / 8;
}

.gallery-item:nth-child(4) {
    grid-row: 3 / span 2;
    grid-column: 1 / 6;
}

.gallery-item:nth-child(5) {
    grid-row: 3;
    grid-column: 6 / 13;
}

.gallery-item:nth-child(6) {
    grid-row: 4;
    grid-column: 6 / 13;
}

.gallery-item:nth-child(7) {
    grid-row: 5;
    grid-column: 1 / 8;
}

.gallery-item:nth-child(8) {
    grid-row: 5;
    grid-column: 8 / 13;
}

.gallery-item img {
    width: 100%;
    height: 100%;
}

.gallery-item img {
    object-fit: cover;
    transition: scale 650ms var(--ease-out), filter 300ms ease;
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.83), transparent 58%);
    content: "";
    pointer-events: none;
}

.gallery-caption {
    position: absolute;
    z-index: 2;
    right: clamp(0.85rem, 2vw, 1.4rem);
    bottom: clamp(0.85rem, 2vw, 1.4rem);
    left: clamp(0.85rem, 2vw, 1.4rem);
    display: grid;
    grid-template-columns: 2.1rem minmax(0, 1fr);
    column-gap: 0.8rem;
    align-items: end;
}

.gallery-caption > span {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.72rem;
}

.gallery-caption strong {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.7vw, 1.6rem);
    line-height: 1.1;
}

.gallery-caption small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    scale: 1.04;
    filter: saturate(1.08) contrast(1.03);
}

/* Lightbox */
.lightbox {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    padding-top: max(clamp(0.75rem, 2vw, 1.5rem), env(safe-area-inset-top, 0px));
    padding-right: max(clamp(0.75rem, 2vw, 1.5rem), env(safe-area-inset-right, 0px));
    padding-bottom: max(clamp(0.75rem, 2vw, 1.5rem), env(safe-area-inset-bottom, 0px));
    padding-left: max(clamp(0.75rem, 2vw, 1.5rem), env(safe-area-inset-left, 0px));
    border: 0;
    background: rgba(0, 0, 0, 0.98);
    color: #fff;
    opacity: 0;
    transition: opacity 220ms ease, display 220ms allow-discrete, overlay 220ms allow-discrete;
}

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

@starting-style {
    .lightbox[open] {
        opacity: 0;
    }
}

.lightbox::backdrop {
    background: var(--ink);
}

.lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
}

.lightbox-toolbar p {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.icon-button-light {
    border-color: var(--line-light);
}

.lightbox-stage {
    display: grid;
    min-height: 0;
    grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    align-items: center;
    touch-action: pan-y;
}

.lightbox-stage figure {
    display: grid;
    min-width: 0;
    min-height: 0;
    max-height: calc(100dvh - 6rem);
    place-items: center;
}

.lightbox-stage img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 9rem);
    object-fit: contain;
}

.lightbox-stage figcaption {
    width: 100%;
    padding-top: 0.65rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    text-align: center;
}

.lightbox-nav {
    display: grid;
    width: 3.5rem;
    min-height: 3.5rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line-light);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.lightbox-nav:hover {
    border-color: var(--accent);
    background: var(--accent);
}

/* O firmie i obszar */
.about-section {
    border-top: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
    gap: clamp(3rem, 9vw, 10rem);
}

.about-title h2 {
    max-width: 11ch;
    margin-top: 0.7rem;
}

.about-mark {
    position: relative;
    isolation: isolate;
    width: clamp(8.5rem, 16vw, 13.5rem);
    margin-top: clamp(2rem, 5vw, 4rem);
    background: #000;
}

.about-mark::after {
    position: absolute;
    z-index: -1;
    right: -0.55rem;
    bottom: -0.55rem;
    width: 62%;
    height: 62%;
    background: var(--accent);
    content: "";
}

.about-mark img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.about-lead {
    max-width: 38rem;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.7vw, 2.35rem);
    font-weight: 730;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.about-copy > p:not(.about-lead) {
    max-width: 42rem;
    margin-top: 1.25rem;
    color: var(--ink-muted);
}

.brand-values {
    margin-block: clamp(2rem, 4vw, 3.25rem);
    border-top: 0.18rem solid var(--ink);
    list-style: none;
}

.brand-values li {
    display: grid;
    min-height: 4.2rem;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.brand-values li span {
    color: var(--accent-strong);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* Opinie */
.reviews-section {
    position: relative;
    overflow: hidden;
    background: var(--accent);
    color: var(--ink);
}

.reviews-section::after {
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    width: clamp(16rem, 35vw, 34rem);
    aspect-ratio: 1;
    border: clamp(2.5rem, 7vw, 6rem) solid rgba(0, 0, 0, 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.reviews-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2.5rem, 8vw, 9rem);
    align-items: start;
}

.reviews-grid .section-index {
    color: var(--ink);
}

.reviews-grid h2 {
    max-width: 10ch;
    margin-top: 0.65rem;
}

.reviews-empty {
    position: relative;
    min-width: 0;
    padding: clamp(1.5rem, 5vw, 4.5rem);
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.reviews-mark {
    display: block;
    height: clamp(4rem, 8vw, 7rem);
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(7rem, 13vw, 12rem);
    line-height: 0.85;
}

.reviews-empty h3 {
    position: relative;
    max-width: 16ch;
    margin-top: 1rem;
    font-size: clamp(1.8rem, 4vw, 3.7rem);
}

.reviews-empty p {
    max-width: 42rem;
    margin-top: 1.4rem;
    color: rgba(255, 255, 255, 0.72);
}

.reviews-empty .button {
    margin-top: 2rem;
    border-color: #fff;
    background: #fff;
    color: var(--ink);
}

.reviews-empty .button:hover {
    border-color: var(--accent);
    background: var(--accent);
}

/* Kontakt i formularz */
.contact-section {
    background: var(--paper-raised);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.74fr) minmax(0, 1.26fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: start;
}

.contact-intro {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.contact-intro h2 {
    max-width: 10ch;
    margin-block: 0.65rem 1.5rem;
}

.contact-intro > p:not(.section-index) {
    max-width: 33rem;
    color: var(--ink-muted);
}

.contact-details {
    display: grid;
    margin-top: clamp(2.2rem, 4vw, 3.7rem);
    border-top: 0.15rem solid var(--ink);
    font-style: normal;
}

.contact-details > a,
.contact-details > div {
    display: grid;
    gap: 0.2rem;
    min-height: 4.7rem;
    justify-content: stretch;
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.contact-details > a:hover strong {
    color: var(--accent-strong);
}

.contact-details span {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-details strong {
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.2;
    transition: color 160ms ease;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--ink);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.social-links a:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.form-panel {
    position: relative;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    border: 1px solid var(--line);
    background: var(--paper);
}

.form-panel::before {
    position: absolute;
    top: -1px;
    left: -1px;
    width: clamp(3rem, 7vw, 5.5rem);
    height: 0.3rem;
    background: var(--accent);
    content: "";
}

.contact-form {
    display: grid;
    gap: 1.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.9rem, 2vw, 1.35rem);
}

.field {
    display: grid;
    min-width: 0;
    gap: 0.42rem;
}

.field label,
.contact-methods legend {
    font-size: 0.83rem;
    font-weight: 790;
    line-height: 1.35;
}

.field label > span {
    color: var(--accent-strong);
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.label-row > span {
    color: var(--ink-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.7rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #a9aa9f;
    border-radius: 0;
    background: var(--paper-raised);
    color: var(--ink);
    caret-color: var(--accent-strong);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
    min-height: 10rem;
    resize: vertical;
}

.field select {
    padding-right: 2.6rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--ink-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 0;
    border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 0.18rem solid #fff;
    outline-offset: 0.12rem;
    box-shadow: 0 0 0 0.38rem var(--ink);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
    background: #fff8f7;
}

.field-error {
    min-height: 1.15em;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 680;
    line-height: 1.35;
}

.field-hint,
.contact-methods > p {
    color: var(--ink-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.contact-methods {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--line);
}

.contact-methods legend {
    padding-inline: 0.35rem;
}

.contact-methods > p {
    margin: 0 0 0.85rem;
}

.field-error-group {
    display: block;
    margin-top: 0.4rem;
}

.trap-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.submit-button {
    width: fit-content;
    min-width: 12rem;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
    translate: 0;
}

.button-loader {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 0.125rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.submit-button.is-loading .button-loader {
    display: block;
}

.privacy-note {
    max-width: 44rem;
    color: var(--ink-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.privacy-note a {
    color: var(--ink);
    font-weight: 750;
}

.form-status {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 0.25rem solid currentColor;
    background: var(--concrete);
    font-size: 0.9rem;
    font-weight: 720;
}

.form-status.is-error {
    background: #f8e8e5;
    color: var(--danger);
}

.form-status.is-success {
    background: #e1f0e7;
    color: var(--success);
}

@keyframes spin {
    to { rotate: 1turn; }
}

/* Stopka */
.site-footer {
    background: #000;
    color: rgba(255, 255, 255, 0.78);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(16rem, 1.3fr) repeat(3, minmax(9rem, 0.55fr));
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: clamp(3.5rem, 6vw, 6rem);
}

.footer-brand > p {
    max-width: 28rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.58);
}

.footer-logo-lockup {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.25rem);
    text-decoration: none;
}

.footer-signet {
    width: clamp(4.25rem, 7vw, 6.25rem);
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.footer-wordmark {
    width: clamp(12rem, 23vw, 22rem);
    height: auto;
    min-width: 0;
    object-fit: contain;
}

.footer-column h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.footer-column address,
.footer-nav {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    font-style: normal;
}

.footer-column a {
    width: fit-content;
    min-height: 1.8rem;
    overflow-wrap: anywhere;
    text-decoration-color: transparent;
    transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-column a:hover {
    color: #fff;
    text-decoration-color: var(--accent);
}

.footer-bottom {
    display: flex;
    min-height: 4.4rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
}

.footer-bottom a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    text-decoration: none;
}

.mobile-contact-bar {
    display: none;
}

/* Dokument polityki prywatności */
.legal-page {
    background: var(--paper-raised);
}

.legal-header .container {
    display: flex;
    min-height: inherit;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    max-width: min(60vw, 28rem);
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legal-header nav {
    display: flex;
    gap: clamp(0.8rem, 3vw, 2rem);
}

.legal-header nav a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 740;
}

.legal-document {
    padding-block: clamp(3.5rem, 8vw, 8rem);
}

.legal-intro {
    max-width: 70rem;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.legal-intro h1 {
    max-width: 11ch;
    margin-block: 0.7rem 1.2rem;
    font-size: clamp(3rem, 7vw, 6.5rem);
}

.legal-updated {
    color: var(--ink-muted);
    font-size: 0.88rem;
}

.legal-notice {
    max-width: 58rem;
    margin-top: 2rem;
    padding: clamp(1rem, 2.4vw, 1.5rem);
    border-top: 0.2rem solid var(--accent-strong);
    background: var(--accent-pale);
    color: #3d2b00;
}

.legal-notice strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ink);
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(14.5rem, 0.36fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 7vw, 8rem);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    padding-top: 1rem;
    border-top: 0.2rem solid var(--ink);
}

.legal-toc h2 {
    margin-bottom: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-toc ol {
    list-style-position: inside;
}

.legal-toc li {
    border-bottom: 1px solid var(--line);
    color: var(--ink-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.71rem;
}

.legal-toc a {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 680;
    text-decoration-color: transparent;
}

.legal-toc a:hover {
    text-decoration-color: var(--accent-strong);
}

.legal-content {
    min-width: 0;
}

.legal-section {
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
    padding-block: clamp(2rem, 4vw, 3.5rem);
    border-top: 1px solid var(--line);
}

.legal-section:first-child {
    border-top: 0.2rem solid var(--ink);
}

.legal-section h2 {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.3rem;
    font-size: clamp(1.6rem, 3vw, 2.65rem);
    line-height: 1.12;
}

.legal-section h2 span {
    padding-top: 0.28rem;
    color: var(--accent-strong);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.66rem;
    letter-spacing: 0;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
    max-width: 54rem;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p,
.legal-section dl + p,
.legal-section div + p {
    margin-top: 1rem;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.35rem;
}

.legal-section li + li {
    margin-top: 0.45rem;
}

.legal-section a {
    font-weight: 720;
}

.legal-data-list {
    max-width: 54rem;
    margin-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.legal-data-list > div {
    display: grid;
    grid-template-columns: minmax(10rem, 0.4fr) minmax(0, 0.6fr);
    gap: 1rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.legal-data-list dt {
    color: var(--ink-muted);
    font-size: 0.82rem;
}

.legal-data-list dd {
    overflow-wrap: anywhere;
    font-weight: 720;
}

.todo-note {
    max-width: 54rem;
    padding: 1rem 1.1rem;
    border-left: 0.2rem solid var(--accent-strong);
    background: var(--accent-pale);
    color: #3d2b00;
    font-size: 0.88rem;
}

.todo-note strong {
    color: var(--ink);
}

.legal-footer .container {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.legal-footer a {
    color: #fff;
    font-weight: 720;
}

/* Samodzielna strona błędu 404 */
.error-page {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    place-items: center;
    background: var(--ink);
    color: var(--ink);
}

.error-shell {
    position: relative;
    width: min(100%, 58rem);
    padding: clamp(1.5rem, 5vw, 4.5rem);
    overflow: hidden;
    border-top: 0.45rem solid var(--accent);
    background: var(--paper);
}

.error-shell::after {
    position: absolute;
    z-index: 0;
    right: clamp(-1rem, 1vw, 1rem);
    bottom: -0.22em;
    color: rgba(0, 0, 0, 0.06);
    content: "404";
    font-family: var(--font-display);
    font-size: clamp(9rem, 30vw, 22rem);
    font-weight: 900;
    letter-spacing: -0.1em;
    line-height: 0.75;
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.error-logo {
    display: inline-block;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-decoration: none;
}

.error-logo img {
    width: clamp(6.75rem, 18vw, 8.5rem);
    height: auto;
}

.error-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.error-eyebrow::before {
    width: 2.5rem;
    height: 0.18rem;
    background: var(--accent);
    content: "";
}

.error-title {
    max-width: 13ch;
    overflow-wrap: anywhere;
    font-size: clamp(2.35rem, 8vw, 5.5rem);
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.error-lead {
    max-width: 38rem;
    margin-top: clamp(1.35rem, 3vw, 2rem);
    color: var(--ink-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.error-button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    border: 0.125rem solid var(--accent);
    background: var(--accent);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.error-button:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
}

.error-button-secondary {
    border-color: var(--ink);
    background: transparent;
}

.error-button-secondary:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.error-button:focus-visible {
    outline-color: #fff;
    box-shadow: 0 0 0 0.42rem var(--ink);
}

/* Reveal jest progresywnym ulepszeniem: treść pozostaje widoczna bez JS. */
@media (prefers-reduced-motion: no-preference) {
    .reveal-ready [data-reveal] {
        opacity: 0;
        translate: 0 1.15rem;
        transition: opacity 600ms ease, translate 700ms var(--ease-out);
    }

    .reveal-ready [data-reveal].is-revealed {
        opacity: 1;
        translate: 0;
    }
}

@media (max-width: 82rem) {
    :root {
        --header-height: 4.75rem;
    }

    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .brand > img {
        width: 6.5rem;
    }

    .desktop-nav,
    .button-header {
        display: none;
    }

    .js-enabled .menu-toggle {
        display: block;
    }

    .noscript-nav {
        display: flex;
    }
}

@media (max-width: 70rem) {
    .desktop-nav {
        gap: 0.7rem;
    }

    .desktop-nav a {
        font-size: 0.84rem;
    }

    .footer-main {
        grid-template-columns: minmax(15rem, 1.2fr) repeat(2, minmax(9rem, 0.6fr));
    }
}

@media (max-width: 64rem) {
    :root {
        --header-height: 4.75rem;
    }

    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .desktop-nav,
    .button-header {
        display: none;
    }

    .js-enabled .menu-toggle {
        display: block;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 2rem;
    }

    .hero-media {
        min-height: 29rem;
    }

    .machine-copy {
        padding: 1.7rem;
    }

    .gallery-grid {
        grid-auto-rows: clamp(12rem, 24vw, 16rem);
    }

    .contact-grid {
        gap: 3rem;
    }

    .legal-layout {
        grid-template-columns: minmax(12.5rem, 0.32fr) minmax(0, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 50rem) {
    .section-heading-split,
    .gallery-heading,
    .about-grid,
    .contact-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-split,
    .gallery-heading {
        gap: 1.4rem;
        align-items: start;
    }

    .gallery-heading .section-index {
        grid-column: auto;
        margin-bottom: -0.8rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: clamp(2.75rem, 8vw, 4.5rem);
    }

    .hero-copy {
        padding-inline: clamp(0.4rem, 2vw, 1rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .hero-actions .button,
    .hero-actions .text-link {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        max-width: 9ch;
    }

    .hero-media {
        min-height: clamp(20rem, 75vw, 34rem);
    }

    .scope-track {
        min-height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-block: 0.5rem;
    }

    .scope-track span {
        min-height: 2.9rem;
        justify-content: flex-start;
        text-align: left;
    }

    .scope-track span::after {
        display: none;
    }

    .scope-track span::before {
        width: 0.35rem;
        height: 0.35rem;
        margin-right: 0.6rem;
        background: var(--accent);
        content: "";
    }

    .machine,
    .machine-secondary {
        grid-template-columns: 1fr;
    }

    .machine-secondary .machine-media,
    .machine-secondary .machine-copy {
        grid-row: auto;
        grid-column: auto;
    }

    .machine-secondary .machine-copy,
    .machine-copy {
        border: 1px solid var(--line-light);
        border-top: 0;
    }

    .machine-media {
        min-height: clamp(18rem, 68vw, 31rem);
    }

    .equipment-question {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-auto-rows: clamp(13rem, 45vw, 20rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7),
    .gallery-item:nth-child(8) {
        grid-row: auto;
        grid-column: span 1;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(4) {
        grid-row: span 2;
    }

    .gallery-item:nth-child(6) {
        grid-column: 1 / -1;
    }

    .about-grid,
    .contact-grid,
    .reviews-grid {
        gap: 2.5rem;
    }

    .about-copy {
        max-width: 43rem;
    }

    .contact-intro {
        position: static;
    }

    .reviews-grid h2 {
        max-width: 13ch;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
        columns: 2;
        column-gap: 2rem;
    }

    .legal-toc h2 {
        column-span: all;
    }

    .legal-toc li {
        break-inside: avoid;
    }
}

@media (max-width: 40rem) {
    body:not(.legal-page) {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }

    .mobile-contact-bar {
        position: fixed;
        z-index: 90;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.45rem max(0.55rem, env(safe-area-inset-right, 0px)) calc(0.45rem + env(safe-area-inset-bottom, 0px)) max(0.55rem, env(safe-area-inset-left, 0px));
        border-top: 1px solid var(--line);
        background: var(--paper-raised);
        box-shadow: 0 -0.6rem 1.6rem rgba(0, 0, 0, 0.1);
    }

    .mobile-contact-bar a {
        display: inline-flex;
        min-width: 0;
        min-height: 3.15rem;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        border: 1px solid var(--ink);
        font-size: 0.9rem;
        font-weight: 800;
        overflow-wrap: anywhere;
        text-align: center;
        text-decoration: none;
    }

    .mobile-contact-bar a:first-child {
        background: var(--accent);
    }

    .mobile-contact-bar a:last-child {
        border-left: 0;
        background: var(--ink);
        color: #fff;
    }

    .gallery-grid {
        display: grid;
        grid-auto-rows: auto;
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(7),
    .gallery-item:nth-child(8) {
        min-height: 0;
        grid-row: auto;
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(4) {
        aspect-ratio: 3 / 4;
    }

    .gallery-item:nth-child(6) {
        aspect-ratio: 3 / 2;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .offer-grid article {
        min-height: 8.5rem;
    }

    .offer-grid span {
        margin-bottom: 1.8rem;
    }

    .lightbox-stage {
        position: relative;
        padding-bottom: 4.3rem;
        grid-template-columns: 1fr;
    }

    .lightbox-stage figure {
        grid-row: 1;
        grid-column: 1 / -1;
    }

    .lightbox-nav {
        position: absolute;
        bottom: 0.35rem;
    }

    .lightbox-prev {
        left: calc(50% - 4rem);
    }

    .lightbox-next {
        right: calc(50% - 4rem);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .submit-button {
        width: 100%;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom,
    .legal-footer .container {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 1rem;
    }

    .legal-header .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
        padding-block: 0.7rem;
    }

    .legal-header nav a {
        min-height: 2.2rem;
    }

    .legal-toc {
        columns: 1;
    }

    .legal-data-list > div {
        grid-template-columns: 1fr;
        gap: 0.18rem;
    }
}

@media (max-width: 26rem) {
    :root {
        --gutter: 0.85rem;
    }

    .brand > img {
        width: 6.25rem;
        height: auto;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .hero-actions .text-link {
        width: 100%;
        justify-content: center;
    }

    .scope-track {
        grid-template-columns: 1fr;
    }

    .error-actions {
        display: grid;
    }

    .error-button {
        width: 100%;
    }
}

@media (max-height: 31rem) and (orientation: landscape) {
    .mobile-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-block: 0.7rem;
        overflow-y: auto;
    }

    .mobile-nav a {
        min-height: 3rem;
        font-size: 1.25rem;
    }

    .mobile-menu-call {
        min-height: 2.75rem;
        margin-top: 0.5rem;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .button,
    .menu-toggle,
    .icon-button,
    .gallery-item,
    .lightbox-nav {
        border: 2px solid ButtonText;
    }

    .eyebrow span,
    .form-panel::before {
        background: Highlight;
    }

    .error-shell {
        border: 0.2rem solid CanvasText;
    }
}

@media print {
    .site-header,
    .skip-link,
    .legal-toc,
    .site-footer,
    .mobile-contact-bar {
        display: none !important;
    }

    body,
    .legal-page {
        background: #fff;
        color: #000;
        font-size: 10.5pt;
    }

    .container,
    .shell {
        width: 100%;
    }

    .legal-document {
        padding: 0;
    }

    .legal-layout {
        display: block;
    }

    .legal-section {
        break-inside: avoid;
    }

    a {
        text-decoration: none;
    }
}
