/* =========================================================
   Rubešák – veřejný web
   Barvy převzaté z loga a banneru: červená #CC141C, černá, bílá, šedá.
   ========================================================= */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-700-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-ext-800-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
    --red: #CC141C;
    --red-600: #B01118;
    --red-700: #8F0D13;
    --black: #0B0B0B;
    --ink: #161616;
    --charcoal: #222222;
    --gray-700: #3D3D3D;
    --gray-500: #6B6B6B;
    --gray-300: #D4D4D4;
    --gray-200: #E6E6E6;
    --gray-100: #F2F2F2;
    --white: #FFFFFF;

    --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --section-y: clamp(3.5rem, 8vw, 6.5rem);
    --radius: 2px;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .25);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-600); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; font-style: italic; line-height: .98; text-transform: uppercase; letter-spacing: .005em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .75rem 1rem; background: var(--black); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 1rem; color: var(--white); }
.text-red { color: var(--red); }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* ---------- Buttons (skewed like the banner) ---------- */
.btn {
    --btn-bg: var(--red);
    --btn-border: var(--red);
    --btn-color: var(--white);
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.6rem;
    border: 0;
    background: none;
    color: var(--btn-color);
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.1;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s var(--ease);
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--btn-bg);
    border: 2px solid var(--btn-border);
    transform: skewX(-12deg);
    transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { color: var(--btn-color); }
.btn:hover::before { transform: skewX(-12deg) scale(1.03); }
.btn--primary:hover { --btn-bg: var(--red-600); --btn-border: var(--red-600); }
.btn--outline { --btn-bg: transparent; --btn-border: var(--ink); --btn-color: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-color: var(--white); }
.btn--light { --btn-bg: var(--white); --btn-border: var(--white); --btn-color: var(--black); }
.btn--light:hover { --btn-bg: var(--black); --btn-border: var(--black); --btn-color: var(--white); }
.btn--outline-light { --btn-bg: transparent; --btn-border: var(--white); --btn-color: var(--white); }
.btn--outline-light:hover { --btn-bg: var(--white); --btn-color: var(--black); }
.btn--sm { padding: .55rem 1.1rem; font-size: 1.05rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.3rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.15rem; text-transform: uppercase; text-decoration: none; color: var(--red); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .9rem;
    color: var(--red);
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; transform: skewX(-30deg); }
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.eyebrow--light { color: var(--white); }
.eyebrow--light::before { background: var(--red); }

.section { padding-block: var(--section-y); }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--ink); color: var(--gray-300); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: var(--black); }
.section-title--light { color: var(--white); }
.section-lead { margin-top: 1rem; font-size: 1.15rem; color: var(--gray-700); }

/* Icon in a red-outlined circle, as on the banner */
.icon-badge {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border: 2px solid var(--red);
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge--lg { width: 64px; height: 64px; }
.icon-badge--lg .icon { width: 32px; height: 32px; }
.icon-badge--xl { width: 96px; height: 96px; border-width: 3px; }
.icon-badge--xl .icon { width: 48px; height: 48px; color: var(--red); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__mark { height: 46px; width: auto; }
.brand__wordmark { height: 26px; width: auto; }

.nav-toggle { display: none; position: relative; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    position: absolute; left: 12px; width: 24px; height: 3px; background: var(--black); content: ""; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars { top: 50%; margin-top: -1.5px; }
.nav-toggle__bars::before { left: 0; top: -8px; }
.nav-toggle__bars::after { left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; gap: .25rem; list-style: none; }
.site-nav__link {
    position: relative;
    display: block;
    padding: .5rem .8rem;
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.2rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none;
}
.site-nav__link::after {
    content: "";
    position: absolute;
    left: .8rem; right: .8rem; bottom: .2rem;
    height: 3px;
    background: var(--red);
    transform: scaleX(0) skewX(-30deg);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--black); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1) skewX(-30deg); }

@media (max-width: 1023px) {
    :root { --header-h: 64px; }
    .brand__mark { height: 38px; }
    .brand__wordmark { height: 21px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1rem var(--gutter) 1.75rem;
        background: var(--black);
        border-top: 4px solid var(--red);
        box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .5);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    .site-nav__list { flex-direction: column; }
    .site-nav__link { padding: .8rem 0; color: var(--white); font-size: 1.6rem; border-bottom: 1px solid var(--charcoal); }
    .site-nav__link:hover, .site-nav__link.is-active { color: var(--white); }
    .site-nav__link::after { left: 0; right: auto; width: 40px; bottom: -1px; }
    .site-nav__cta { align-self: flex-start; margin-left: 6px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(calc(100svh - var(--header-h)), 860px);
    overflow: hidden;
    background: var(--black);
    color: var(--white);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; filter: grayscale(1) contrast(1.15) brightness(.85); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 11, .94) 0%, rgba(11, 11, 11, .78) 40%, rgba(11, 11, 11, .25) 75%, rgba(11, 11, 11, .1) 100%), linear-gradient(0deg, rgba(11, 11, 11, .8) 0%, transparent 35%); }
.hero__slashes { position: absolute; top: -40px; right: -60px; display: flex; gap: 18px; transform: rotate(-35deg); transform-origin: top right; opacity: .95; }
.hero__slashes span { display: block; width: 26px; height: 420px; background: var(--red); }
.hero__slashes span:nth-child(2) { background: var(--black); height: 360px; }
.hero__slashes span:nth-child(3) { height: 300px; opacity: .8; }
.hero__inner { position: relative; padding-block: clamp(3.5rem, 10vh, 7rem) clamp(2.5rem, 6vh, 4rem); }
.hero__title { max-width: 14ch; font-size: clamp(2.8rem, 7.4vw, 6rem); color: var(--white); }
.hero__slogan { margin: 1.25rem 0 .5rem; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); text-transform: uppercase; color: var(--white); }
.hero__lead { max-width: 52ch; font-size: 1.15rem; color: var(--gray-300); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; padding-left: 6px; }
.hero__strip { position: relative; background: rgba(11, 11, 11, .92); border-top: 3px solid var(--red); }
.hero__strip-inner { display: flex; flex-wrap: wrap; }
.hero__strip a {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: 1.1rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}
.hero__strip a + a { border-left: 1px solid rgba(204, 20, 28, .7); }
.hero__strip a .icon { width: 1.5rem; height: 1.5rem; color: var(--red); }
.hero__strip a:first-child span { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.5rem; }
.hero__strip a:hover span { text-decoration: underline; text-decoration-color: var(--red); }
@media (max-width: 700px) {
    .hero__slashes { right: -120px; opacity: .6; }
    .hero__strip a + a { border-left: 0; }
    .hero__strip a { flex-basis: 100%; justify-content: flex-start; padding: .6rem 0; }
    .hero__strip-inner { padding-block: .5rem; }
}

/* ---------- Benefits ---------- */
.benefits { padding-block: clamp(2.5rem, 5vw, 4rem); }
.benefits__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; list-style: none; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit__title { margin: .2rem 0 .35rem; font-size: 1.45rem; color: var(--black); }
.benefit p { margin: 0; color: var(--gray-700); font-size: 1rem; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 2rem 1.75rem 1.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.service-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__title { font-size: 1.75rem; color: var(--black); }
.service-card__text { margin: 0; flex: 1; color: var(--gray-700); }
.service-card__more { display: inline-flex; align-items: center; gap: .4rem; color: var(--red); font-family: var(--font-display); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.05rem; }

/* ---------- Machinery teaser ---------- */
.machinery-teaser { position: relative; overflow: hidden; }
.machinery-teaser::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10%; width: 38%; background: repeating-linear-gradient(-55deg, transparent 0 40px, rgba(204, 20, 28, .08) 40px 52px); pointer-events: none; }
.machinery-teaser__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.machinery-teaser__text p { font-size: 1.1rem; }
.machinery-teaser__list { display: grid; gap: .75rem; margin: 1.5rem 0 2rem; list-style: none; }
.machinery-teaser__list li { display: flex; align-items: center; gap: .8rem; color: var(--white); font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.4rem; text-transform: uppercase; }
.machinery-teaser__list .icon { width: 30px; height: 30px; color: var(--red); }
.machinery-teaser__media { position: relative; margin: 0 18px 18px 0; }
.machinery-teaser__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--red); }
.machinery-teaser__media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .5s var(--ease); }
.machinery-teaser__media:hover img { filter: none; }
@media (max-width: 899px) { .machinery-teaser__inner { grid-template-columns: 1fr; } }

/* ---------- Project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.project-card { background: var(--white); border: 1px solid var(--gray-200); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card[hidden] { display: none; }
.project-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.project-card__link:hover { color: inherit; }
.project-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-200); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__count { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; background: var(--black); color: var(--white); font-size: .85rem; font-weight: 600; }
.project-card__count .icon { color: var(--red); }
.project-card__body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.25rem 1.4rem 1.4rem; border-top: 4px solid var(--red); }
.project-card__tags { margin: 0; color: var(--red); font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.project-card__title { font-size: 1.6rem; color: var(--black); }
.project-card__meta { margin: 0; display: flex; align-items: center; gap: .35rem; color: var(--gray-500); font-size: .95rem; }
.project-card__more { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--red); font-family: var(--font-display); font-weight: 700; font-style: italic; text-transform: uppercase; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; list-style: none; counter-reset: step; }
.step { position: relative; padding: 2rem 1.75rem; background: var(--white); border-left: 4px solid var(--red); }
.step__number { display: block; margin-bottom: .75rem; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 4.5rem; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--red); }
.step__title { margin-bottom: .5rem; font-size: 1.6rem; color: var(--black); }
.step p { margin: 0; color: var(--gray-700); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review { margin: 0; padding: 2rem; background: var(--gray-100); border-top: 4px solid var(--red); }
.review blockquote { margin: 0 0 1rem; font-size: 1.1rem; }
.review blockquote p::before { content: "„"; }
.review blockquote p::after { content: "“"; }
.reviews__more { margin-top: 2rem; }

/* ---------- Region ---------- */
.region__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem 4rem; align-items: center; }
.region__inner p { font-size: 1.1rem; color: var(--gray-700); }
.region__towns { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; }
.region__towns li { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; background: var(--gray-100); font-weight: 600; }
.region__towns .icon { color: var(--red); }
.region__towns .region__more { background: none; color: var(--gray-500); font-style: italic; }
@media (max-width: 799px) { .region__inner { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 4.5rem);
    background: var(--red) repeating-linear-gradient(-55deg, transparent 0 60px, rgba(0, 0, 0, .07) 60px 90px);
    color: var(--white);
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); }
.cta-band__text { margin: .75rem 0 0; max-width: 56ch; font-size: 1.15rem; color: rgba(255, 255, 255, .92); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; padding-left: 6px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); background: var(--ink); color: var(--gray-300); }
.page-hero::after { content: ""; position: absolute; right: -40px; bottom: 0; width: 45%; max-width: 520px; height: 8px; background: var(--red); transform: skewX(-40deg); }
.page-hero--photo .page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.5); }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 11, 11, .92) 0%, rgba(11, 11, 11, .6) 60%, rgba(11, 11, 11, .35) 100%); }
.page-hero--compact { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { max-width: 20ch; font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--white); }
.page-hero__lead { max-width: 60ch; margin: 1.25rem 0 0; font-size: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; font-size: .95rem; color: var(--gray-500); }
.crumbs a { color: var(--gray-300); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs a:last-child { color: var(--white); }

/* ---------- Prose & detail layouts ---------- */
.prose { max-width: 72ch; }
.prose--narrow { margin-inline: auto; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--black); }
.prose h2:first-child { margin-top: 0; }
.prose .lead, .lead { font-size: 1.25rem; line-height: 1.55; color: var(--black); }
.check-list { display: grid; gap: .65rem; list-style: none; margin: 0 0 1.5rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .icon { margin-top: .2rem; color: var(--red); stroke-width: 3; }
.check-list--large li { font-size: 1.15rem; font-weight: 600; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.detail-photo { margin: 2rem 0 0; }
.detail-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.contact-box { padding: 2rem 1.75rem; background: var(--black); color: var(--gray-300); border-top: 5px solid var(--red); }
.contact-box__title { margin-bottom: .75rem; font-size: 1.7rem; color: var(--white); }
.contact-box .btn { margin-top: .9rem; }
.contact-box .btn--outline { --btn-border: var(--white); --btn-color: var(--white); }
.contact-box .btn--outline:hover { --btn-bg: var(--white); --btn-color: var(--black); }
.side-nav { padding: 1.5rem 1.75rem; background: var(--gray-100); }
.side-nav__title { margin-bottom: .75rem; font-size: 1.35rem; color: var(--black); }
.side-nav ul { list-style: none; }
.side-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--gray-200); color: var(--ink); text-decoration: none; font-weight: 600; }
.side-nav a:hover { color: var(--red); }
.side-nav .icon { color: var(--red); }
@media (max-width: 959px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-layout__aside { position: static; }
}

/* Alternating media rows (services overview, machinery) */
.service-list, .machine-list { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.service-row, .machine { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.service-row--reverse .service-row__media, .machine--reverse .machine__media { order: 2; }
.service-row__media, .machine__media { position: relative; }
.service-row__media::after, .machine__media::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 40%; height: 40%; z-index: -1; background: var(--red); }
.service-row__media img, .machine__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .5s var(--ease); }
.service-row:hover img, .machine:hover img { filter: none; }
.service-row__media, .machine__media { isolation: isolate; }
.service-row__title, .machine__title { margin: 1.25rem 0 1rem; font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--black); }
.service-row__body p, .machine__body p { font-size: 1.1rem; color: var(--gray-700); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 1.25rem 0 0; }
.specs div { padding: .9rem 1rem; background: var(--gray-100); border-left: 3px solid var(--red); }
.specs dt { font-size: .85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.specs dd { margin: 0; font-weight: 700; }
@media (max-width: 799px) {
    .service-row, .machine { grid-template-columns: 1fr; }
    .service-row--reverse .service-row__media, .machine--reverse .machine__media { order: 0; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; isolation: isolate; }
.about__media::after { content: ""; position: absolute; right: -14px; top: -14px; width: 50%; height: 50%; z-index: -1; background: var(--red); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.about__signature { margin-top: 2rem; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2rem; text-transform: uppercase; color: var(--black); line-height: 1; }
.about__signature span { display: block; margin-top: .3rem; font-size: 1rem; color: var(--red); letter-spacing: .1em; }
@media (max-width: 849px) { .about { grid-template-columns: 1fr; } .about__media img { aspect-ratio: 4 / 3; } }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--gray-200); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
a.contact-card:hover { border-color: var(--red); color: var(--ink); transform: translateX(4px); }
.contact-card small { display: block; color: var(--gray-500); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { display: block; font-size: 1.15rem; word-break: break-word; }
.contact-card--primary { background: var(--red); border-color: var(--red); color: var(--white); }
.contact-card--primary small { color: rgba(255, 255, 255, .85); }
.contact-card--primary strong { font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1; }
a.contact-card--primary:hover { color: var(--white); border-color: var(--red-600); background: var(--red-600); }
.company-info { margin-top: 1rem; padding: 1.5rem; background: var(--gray-100); font-size: .98rem; }
.company-info__title { margin-bottom: .75rem; font-size: 1.35rem; color: var(--black); }
.company-info p { margin: 0; }
.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--gray-100); border-top: 5px solid var(--red); }
.contact-form > p { color: var(--gray-700); }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.inquiry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .98rem; }
.field__hint { font-weight: 400; color: var(--gray-500); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .8rem .95rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .15s;
}
.field input[type="file"] { padding: .6rem; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204, 20, 28, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field__error { margin: 0; min-height: 0; color: var(--red-600); font-size: .9rem; font-weight: 600; }
.field__error:empty { display: none; }
.inquiry__note { margin: 1.25rem 0; font-size: .9rem; color: var(--gray-500); }
.inquiry__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-left: 6px; }
.inquiry__status { margin: 0; font-weight: 600; }
.inquiry__status.is-error { color: var(--red-600); }
.inquiry__status.is-success { color: #1d7a35; }
@media (max-width: 599px) { .inquiry__grid { grid-template-columns: 1fr; } }

/* ---------- Projects listing ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { padding: .55rem 1.1rem; border: 2px solid var(--gray-300); background: var(--white); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.05rem; text-transform: uppercase; cursor: pointer; transition: all .15s; }
.filter:hover { border-color: var(--black); }
.filter.is-active { background: var(--red); border-color: var(--red); color: var(--white); }
.empty-state { padding: 2.5rem; background: var(--gray-100); text-align: center; font-size: 1.1rem; }

/* ---------- Project detail ---------- */
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.25rem; list-style: none; font-size: 1.05rem; }
.project-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.project-meta .icon { color: var(--red); }
.project-text { margin-bottom: 2.5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gallery__item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-200); cursor: zoom-in; }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1rem .75rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: var(--white); font-size: .95rem; }
@media (max-width: 799px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery__item--wide { aspect-ratio: 4 / 3; } }
@media (max-width: 479px) { .gallery { grid-template-columns: 1fr; } }

.documents { margin-top: 3rem; padding: 1.75rem; background: var(--gray-100); }
.documents__title { margin-bottom: 1rem; font-size: 1.6rem; color: var(--black); }
.documents__list { list-style: none; display: grid; gap: .5rem; }
.documents__list a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.documents__list span { color: var(--gray-500); font-weight: 400; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.pager__link { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.pager__link small { display: block; color: var(--gray-500); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.pager__link .icon { color: var(--red); width: 1.5rem; height: 1.5rem; }
.pager__link:hover { color: var(--red); }
.pager__link--next { justify-self: end; text-align: right; }
.pager__all { font-family: var(--font-display); font-weight: 700; font-style: italic; text-transform: uppercase; text-decoration: none; }
@media (max-width: 599px) {
    .pager { grid-template-columns: 1fr 1fr; }
    .pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.lightbox__img { max-width: min(92vw, 1800px); max-height: 82dvh; width: auto; height: auto; object-fit: contain; }
.lightbox__caption { max-width: 80ch; padding-inline: 1rem; text-align: center; color: var(--gray-300); }
.lightbox__counter { position: absolute; top: 1.1rem; left: 1.25rem; margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.2rem; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--white); cursor: pointer; transition: background .15s; }
.lightbox__btn:hover { background: var(--red); }
.lightbox__btn .icon { width: 28px; height: 28px; }
.lightbox__btn--close { top: .75rem; right: .75rem; }
.lightbox__btn--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Message pages (thanks, 404) ---------- */
.message-page__inner { display: grid; justify-items: center; gap: 1rem; max-width: 640px; text-align: center; }
.message-page__inner p { font-size: 1.15rem; color: var(--gray-700); }
.message-page__code { margin: 0; font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 8rem; line-height: .9; color: transparent; -webkit-text-stroke: 3px var(--red); }
.message-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }

/* ---------- Footer ---------- */
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--red) 0 18px, var(--black) 18px 36px); }
.site-footer { background: var(--black); color: var(--gray-300); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__brand img { width: 100%; max-width: 260px; }
.site-footer__slogan { margin-top: 1.25rem; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.3rem; text-transform: uppercase; color: var(--white); }
.site-footer__title { margin-bottom: 1rem; font-size: 1.3rem; color: var(--white); }
.site-footer__title::after { content: ""; display: block; width: 28px; height: 3px; margin-top: .5rem; background: var(--red); transform: skewX(-30deg); }
.site-footer__links, .site-footer__contact { display: grid; gap: .55rem; list-style: none; }
.site-footer a { color: var(--gray-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); }
.site-footer__contact li { display: flex; align-items: center; gap: .5rem; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: .5rem; word-break: break-word; }
.site-footer__contact .icon { color: var(--red); }
.site-footer__legal { border-top: 1px solid var(--charcoal); font-size: .88rem; color: var(--gray-500); }
.site-footer__legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: var(--gray-500); }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 499px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }
@media (max-width: 1023px) {
    /* Space for the fixed call bar, kept inside the dark footer so no white strip shows */
    .site-footer__legal { padding-bottom: 60px; }
    .call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.4fr 1fr; height: 60px; padding-bottom: env(safe-area-inset-bottom); background: var(--black); box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, .4); }
    .call-bar__item { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--white); font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: 1.25rem; text-transform: uppercase; text-decoration: none; }
    .call-bar__item:hover { color: var(--white); }
    .call-bar__item--call { background: var(--red); }
    /* With JS the bar waits until the hero (with its own call buttons) is scrolled away */
    .call-bar--auto { transform: translateY(110%); transition: transform .3s var(--ease); }
    .call-bar--auto.is-visible { transform: none; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
