/* ASTN Machining – public site. Mobile first, one file. Tokens come from the approved design. */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent: #2f6fb8;
    --accent-light: #5ba0ee;
    --accent-pale: #a3c8f7;
    --dark: #16191c;
    --surface: #f4f5f7;
    --ink: #1d2024;
    --muted: #5b6169;
    --bg: #ffffff;
    --line: #dcdfe3;
    --on-dark: #b9bfc6;
    --radius: 4px;
    --wrap: 1200px;
    --gutter: clamp(24px, 6vw, 120px);
    --focus: var(--accent);
    --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .section--dark, .site-footer, .main-nav, .lightbox { --focus: var(--accent-light); }

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

.skip-link {
    position: absolute; left: 12px; top: -64px; z-index: 100; padding: 12px 18px;
    background: var(--accent); color: #fff; font-weight: 700; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------------------------------------------------------------- shared */

.section { padding-block: 64px; background: var(--bg); }
.section > .wrap { display: grid; gap: var(--stack, 36px); }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; color: var(--accent);
    line-height: 1.4;
}
.eyebrow--light { color: var(--accent-pale); }

.section h2, .hero h1 { line-height: 1.15; }
.section h2 { font-size: 30px; }
.section-head, .section-head > div { display: grid; gap: 12px; align-content: start; }
.lead { font-size: 16px; line-height: 1.6; max-width: 62ch; }
.section--dark .lead { color: var(--on-dark); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px;
    padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 15px; text-decoration: none;
    border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #28619f; }
.btn--outline { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- hero + header */

.hero {
    position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
    color: #fff; background: var(--dark); overflow: clip;
    padding-top: 90px; /* room for the fixed header, same height as the header at the top of the page */
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    /* Dark enough behind the text for 4.5:1 contrast even on the brightest spots of the photo; lighter on the right. */
    background: rgba(13, 15, 17, 0.8);
}
@media (min-width: 768px) {
    .hero-bg::after {
        background: linear-gradient(90deg, rgba(13, 15, 17, 0.86) 0%, rgba(13, 15, 17, 0.84) 45%, rgba(13, 15, 17, 0.74) 62%, rgba(13, 15, 17, 0.5) 100%);
    }
}

/* The header stays at the top while scrolling; it gets a solid background (JS adds .is-scrolled) and shrinks. */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color .2s, box-shadow .2s; }
.site-header.is-scrolled { background: rgba(22, 25, 28, 0.97); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.28); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; transition: padding .2s; }
.is-scrolled .header-row { padding-block: 8px; }
.logo { display: block; line-height: 0; }
.logo img { width: 110px; height: auto; transition: width .2s; }
.is-scrolled .logo img { width: 84px; }
.header-tools { display: flex; align-items: center; }

.nav-toggle, .nav-close {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
    background: none; border: 0; color: #fff; cursor: pointer; border-radius: var(--radius);
}

.langs { display: flex; align-items: center; }
.langs a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.langs img { width: 30px; height: 30px; border-radius: 4px; opacity: 0.75; }
.langs a:hover img { opacity: 1; }
.langs a[aria-current] img { opacity: 1; }
.langs a[aria-current]::after {
    content: ""; position: absolute; bottom: 1px; left: 50%; width: 14px; height: 3px; margin-left: -7px;
    background: var(--accent-light); border-radius: 2px;
}
.langs--header .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.langs--menu, .langs--footer { gap: 12px; flex-wrap: wrap; }
.langs--menu a, .langs--footer a { gap: 8px; padding: 0 10px; color: var(--on-dark); font-size: 14px; min-height: 44px; }
.langs--menu img, .langs--footer img { width: 26px; height: 26px; }
.langs--menu a[aria-current], .langs--footer a[aria-current] { color: #fff; font-weight: 700; }
.langs--menu a[aria-current]::after, .langs--footer a[aria-current]::after { left: 10px; right: 10px; bottom: 4px; width: auto; height: 2px; margin: 0; }

/* Navigation: full-screen menu on small screens, inline list on large ones. */
.main-nav { display: none; }
.main-nav[data-open] {
    position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between;
    gap: 24px; padding-bottom: 32px; background: var(--dark); overflow-y: auto;
}
.menu-head { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); }
.nav-list, .menu-langs, .menu-cta { padding-inline: var(--gutter); }
.menu-cta { display: grid; }
.nav-list a {
    display: block; padding: 16px 0; font-size: 22px; font-weight: 600; color: #fff; text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-list a[aria-current] { color: var(--accent-light); }

.hero-content { display: grid; gap: 20px; padding-block: 40px; align-content: center; }
.hero h1 { font-size: 40px; line-height: 1.08; color: #fff; max-width: 820px; letter-spacing: -0.005em; }
.hero-lead { font-size: 17px; line-height: 1.55; color: #d3d8dd; max-width: 600px; }
.hero-actions { display: grid; gap: 16px; padding-top: 12px; }

.key-facts { background: var(--dark); padding-block: 24px; }
.key-facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.key-facts-list li { display: grid; gap: 6px; align-content: start; padding-left: 20px; border-left: 3px solid var(--accent-light); }
.key-facts-list strong { font-size: clamp(20px, 6.2vw, 24px); line-height: 1.25; color: #fff; white-space: nowrap; }
.key-facts-list span { font-size: 14px; line-height: 1.4; color: var(--on-dark); }

/* ---------------------------------------------------------------- activity */

.services { display: grid; gap: 32px; }
.service {
    display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; row-gap: 8px; align-content: start;
    padding-top: 20px; border-top: 3px solid var(--accent);
}
.service img { grid-row: span 2; width: 64px; height: 64px; }
.service h3 { font-size: 22px; align-self: end; }
.service p { grid-column: 2; font-size: 16px; }

/* ---------------------------------------------------------------- about */

.section--alt .wrap { --stack: 28px; }
.about-row { display: grid; gap: 28px; align-items: center; }
.about-photo { width: 100%; aspect-ratio: 520 / 437; object-fit: cover; border-radius: var(--radius); }
.about-text { display: grid; gap: 28px; }
.about-block { display: grid; gap: 8px; }
.about-block h3 { font-size: 20px; }
.about-block p { max-width: 68ch; }
.timeline { display: grid; gap: 20px; }
.timeline li { display: grid; gap: 8px; padding-top: 22px; border-top: 2px solid var(--line); align-content: start; }
.timeline strong { font-size: 20px; color: var(--accent); line-height: 1.3; }
.timeline span { font-size: 15px; line-height: 1.55; }

/* ---------------------------------------------------------------- machines */

#strojni-park > .wrap { --stack: 28px; }
.machine-group { display: grid; gap: 28px; }
.group-label { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 3px solid var(--accent); }
.group-label h3 { font-size: 20px; line-height: 1.3; }
.group-label p { font-size: 15px; line-height: 1.55; }

.machine-cards { display: grid; gap: 24px; align-items: stretch; }
.machine-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.machine-photo { height: 170px; background: #fff; display: flex; align-items: center; justify-content: center; }
.machine-photo img { width: 100%; height: 100%; object-fit: contain; }
.machine-body { display: grid; gap: 6px; align-content: start; padding: 22px 24px 24px; border-top: 1px solid var(--line); flex: 1; }
.machine-type { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.machine-body h4 { font-size: 19px; line-height: 1.25; }
.machine-desc { font-size: 14px; line-height: 1.5; }
.specs { margin-top: 10px; }
.specs > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.specs dt { flex: 1 1 0; min-width: 8em; font-size: 13.5px; }
/* A value is never broken in the middle ("230 / 230 mm"); only the label wraps. Long values go on their own line. */
.specs dd { flex: 0 0 auto; max-width: 100%; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; }
.specs dd.spec-long { flex-basis: 100%; white-space: normal; text-align: left; }

/* ---------------------------------------------------------------- gallery */

#ukazka-vyroby > .wrap { --stack: 28px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-item { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery li:nth-last-child(2):nth-child(odd) { grid-column: span 2; }
.gallery-cta {
    grid-column: span 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px;
    background: var(--accent); border-radius: var(--radius); color: #fff;
}
.gallery-cta h3 { font-size: 24px; line-height: 1.25; color: #fff; }
.gallery-cta p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.92); }
.gallery-cta .link-arrow { --focus: #fff; }

/* ---------------------------------------------------------------- quality policy */

#politika-kvality > .wrap { --stack: 28px; }
.quality-intro { display: grid; gap: 28px; align-items: start; }
.quality-text { display: grid; gap: 20px; }
.quality-text .eyebrow, .contact-intro .eyebrow { margin-bottom: -6px; }
.quality-text > p:not(.eyebrow) { max-width: 68ch; }
.quality-lead { font-size: 17px; color: var(--ink); line-height: 1.6; }
.doc-card { display: grid; gap: 14px; padding: 22px; background: var(--surface); border-radius: var(--radius); }
.doc-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--accent); color: #fff; border-radius: var(--radius); }
.doc-card h3 { font-size: 22px; }
.doc-card p { font-size: 15px; line-height: 1.55; }
.doc-card .doc-meta { font-size: 13px; line-height: 1.5; }
.doc-note { display: block; font-weight: 600; color: var(--ink); }
.doc-card .btn { min-height: 50px; padding-block: 12px; }

.principles { display: grid; gap: 28px; align-items: start; }
.principle { display: grid; gap: 14px; padding-top: 16px; border-top: 2px solid var(--line); align-content: start; }
.principle--accent { border-top: 3px solid var(--accent); }
.principle h3 { font-size: 20px; line-height: 1.3; }
.checklist { display: grid; gap: 12px; max-width: 66ch; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.checklist .icon { margin-top: 3px; color: var(--accent); }

.quality-closing { display: grid; gap: 20px; padding: 22px; background: var(--surface); border-radius: var(--radius); align-items: center; }
.quality-closing p { max-width: 68ch; color: var(--ink); }
.signature { display: grid; gap: 4px; }
.signature-place { font-size: 14px; line-height: 1.5; color: var(--muted); }
.signature strong { font-size: 17px; color: var(--ink); }
.signature span:last-child { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- management */

#vedeni > .wrap { --stack: 28px; }
.people { display: grid; gap: 0; }
.person { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.avatar {
    display: flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px;
    background: #fff; border: 1px solid var(--line); border-radius: 50%; overflow: hidden;
}
.avatar img { width: 46px; height: 46px; object-fit: contain; }
.avatar img[width="88"], .avatar img[srcset] { width: 100%; height: 100%; object-fit: cover; }
.person-info { display: grid; gap: 2px; }
.person h3 { font-size: 17px; line-height: 1.25; }
.person-role { font-size: 14px; }
.person-contacts { display: grid; margin-top: 4px; }
.person-contacts li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.person-contacts .icon { color: var(--accent); }
.person-contacts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.person-contacts a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- contact + footer */

.section--contact { padding-bottom: 0; }
.section--contact > .wrap { --stack: 28px; padding-bottom: 40px; }
.contact-row { display: grid; gap: 28px; }
.contact-intro { display: grid; gap: 20px; align-content: start; }
.contact-links { display: grid; gap: 14px; margin-top: 8px; }
.contact-links li { display: flex; align-items: center; gap: 12px; }
.contact-links .icon { color: var(--accent-light); width: 22px; height: 22px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 20px; font-weight: 600; color: #fff; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }

.addresses { display: grid; gap: 28px; align-content: start; }
.address { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.address h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-light); line-height: 1.6; margin-bottom: 2px; }
.address-line { font-size: 18px; font-weight: 600; color: #fff; line-height: 1.5; }
.address-line--muted { font-weight: 400; color: var(--on-dark); }
.camera-notice { display: flex; gap: 10px; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.camera-notice .icon { margin-top: 2px; color: var(--accent-light); }
.company-data { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.company-data > div { display: grid; gap: 4px; align-content: start; }
.company-data dt { font-size: 13px; color: var(--on-dark); }
.company-data dd { font-size: 16px; font-weight: 600; color: #fff; }

.site-footer { background: var(--dark); color: var(--on-dark); padding-bottom: 28px; }
.footer-row { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.copyright { font-size: 14px; }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(13, 15, 17, 0.96); color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(13, 15, 17, 0.96); }
.lightbox figure { display: grid; gap: 12px; justify-items: center; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius); background: #fff; }
.lightbox figcaption { font-size: 14px; text-align: center; color: var(--on-dark); max-width: 70ch; }
.lightbox-btn {
    position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.12); border: 0; border-radius: 50%; color: #fff; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 12px; top: 50%; margin-top: -24px; }

/* ---------------------------------------------------------------- error pages */

.error-page { background: var(--dark); color: var(--on-dark); min-height: 100vh; display: grid; place-items: center; }
.error-box { display: grid; gap: 20px; padding-block: 64px; justify-items: start; }
.error-box h1 { color: #fff; font-size: 34px; }

/* ================================================================ tablet */

@media (min-width: 640px) {
    .machine-cards { grid-template-columns: repeat(2, 1fr); }
    .machine-photo { height: 210px; }
    .key-facts-list { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .hero-actions { display: flex; }
    .timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .services { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .service { display: block; padding-top: 24px; }
    .service img { width: 88px; height: 88px; margin-bottom: 16px; }
    .service p { margin-top: 8px; }
}

@media (min-width: 700px) {
    .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .gallery li:nth-last-child(2):nth-child(odd) { grid-column: auto; }
    .gallery-cta { grid-column: auto; }
    .people { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (min-width: 900px) {
    .machine-cards { grid-template-columns: repeat(3, 1fr); }
    .principles { grid-template-columns: 1fr 1fr; gap: 56px 48px; }
    .about-row { grid-template-columns: minmax(0, 520fr) minmax(0, 600fr); gap: 80px; }
    .quality-closing { grid-template-columns: 1fr auto; gap: 48px; padding: 32px; }
    .signature { min-width: 260px; }
}

/* ================================================================ desktop */

@media (min-width: 1000px) {
    .quality-intro { grid-template-columns: minmax(0, 740fr) minmax(0, 380fr); gap: 80px; }
    .doc-card { padding: 28px; }
    .contact-row { grid-template-columns: 1fr 1fr; gap: 80px; }
    .people { grid-template-columns: repeat(4, 1fr); }
    .person { flex-direction: column; align-items: flex-start; gap: 18px; padding: 0; border-top: 0; }
    .avatar { width: 88px; height: 88px; }
    .avatar img { width: 64px; height: 64px; }
    .person h3 { font-size: 20px; }
    .person-role { font-size: 15px; }
    .footer-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding-block: 32px 0; }
    .footer-row .langs { justify-content: center; gap: 16px; }
}

@media (min-width: 768px) {
    .section { padding-block: 110px; }
    .section > .wrap { --stack: 64px; }
    .section--alt .wrap { --stack: 72px; }
    #strojni-park > .wrap { --stack: 72px; }
    #ukazka-vyroby > .wrap, #politika-kvality > .wrap, #vedeni > .wrap { --stack: 56px; }
    .section--contact > .wrap { --stack: 72px; padding-bottom: 72px; }
    .section--contact { padding-bottom: 0; }
    .section h2 { font-size: 42px; }
    .section-head, .section-head > div { gap: 14px; }
    .eyebrow { font-size: 13px; }
    .section-head--row { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 80px; align-items: end; }
    .lead { font-size: 18px; }
    .hero { padding-top: 124px; }
    .header-row { padding-block: 28px; }
    .logo img { width: 150px; }
    .is-scrolled .header-row { padding-block: 10px; }
    .is-scrolled .logo img { width: 96px; }
    .hero h1 { font-size: 56px; }
    .hero-lead { font-size: 19px; }
    .hero-content { padding-block: 48px; }
    .key-facts { padding-block: 34px; }
    .key-facts-list strong { font-size: 30px; white-space: normal; }
    .machine-group { gap: 28px; }
    .gallery-cta { padding: 24px; }
    .address-line { font-size: 18px; }
    .contact-links a { font-size: 24px; }
    .quality-lead { font-size: 18px; }
    .principle h3 { font-size: 20px; }
    .about-block h3 { font-size: 20px; }
    .timeline strong { font-size: 22px; }
    .service h3 { font-size: 24px; }
    .footer-row .copyright { text-align: right; }
}

@media (min-width: 1200px) {
    .hero { min-height: 820px; }
    .hero h1 { font-size: 68px; }
    .machine-group { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
    .group-label { padding-top: 20px; gap: 12px; }
    .group-label h3 { font-size: 22px; }
    .section--alt .about-row { gap: 80px; }
}

@media (min-width: 1280px) {
    .main-nav { display: block; }
    .menu-head, .menu-langs, .menu-cta, .nav-toggle { display: none; }
    .nav-list { display: flex; gap: clamp(14px, 1.5vw, 28px); padding: 0; }
    .nav-list a { padding: 10px 0; font-size: 14px; border: 0; white-space: nowrap; }
    .nav-list a:hover { color: var(--accent-pale); }
}

/* ---------------------------------------------------------------- career */

.job { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.job-head { display: grid; gap: 10px; padding: 28px 24px; background: var(--dark); color: #fff; }
.job-head h3 { color: #fff; font-size: 28px; line-height: 1.15; }
.job-chips { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 6px; }
.job-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-weight: 600; color: #fff; }
.job-chips .icon { color: var(--accent-light); }
.job-cols { display: grid; gap: 0; }
.job-col { display: grid; gap: 16px; align-content: start; padding: 24px; border-top: 3px solid var(--accent); }
.job-col + .job-col { border-top-color: var(--line); }
.job-col h4 { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 1.3; }
.job-col h4 .icon { color: var(--accent); }
.job-foot { display: grid; gap: 12px; padding: 24px; background: var(--accent); color: #fff; }
.job-cta strong { display: block; font-size: 24px; line-height: 1.2; }
.job-cta p { margin-top: 4px; color: rgba(255, 255, 255, 0.95); }
.job-contacts { display: grid; gap: 0; align-content: center; }
.job-contacts li { display: flex; align-items: center; gap: 10px; }
.job-contacts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 18px; color: #fff; text-decoration: none; }
.job-contacts a:hover { text-decoration: underline; }
.job-foot { --focus: #fff; }

/* ---------------------------------------------------------------- cookie banner (only with Google Analytics) */

.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 90vh; overflow-y: auto; background: var(--dark); color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35); --focus: var(--accent-light); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: grid; gap: 16px; padding-block: 18px; }
.cookie-text h2 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.cookie-text p { font-size: 14px; line-height: 1.55; max-width: 80ch; }
.cookie-text a { color: var(--accent-pale); }
.cookie-details { font-size: 14px; }
.cookie-details summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent-pale); font-weight: 600; text-decoration: underline; }
.cookie-details dl { display: grid; gap: 10px; margin: 4px 0 8px; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.2); max-width: 80ch; }
.cookie-details dl > div { display: grid; gap: 2px; }
.cookie-details dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.cookie-details dd { margin: 0; line-height: 1.5; }
.cookie-details dd a { color: var(--accent-pale); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions .btn { min-height: 46px; padding-block: 10px; flex: 1 1 140px; }
.link-button { display: inline; padding: 0; min-height: 44px; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: #fff; }

@media (min-width: 900px) {
    .job-head { padding: 32px; }
    .job-head h3 { font-size: 34px; }
    .job-cols { grid-template-columns: repeat(3, 1fr); }
    .job-col { padding: 28px 32px; }
    .job-col + .job-col { border-top-color: var(--accent); border-left: 1px solid var(--line); }
    .job-foot { grid-template-columns: 1fr auto; align-items: center; padding: 24px 32px; gap: 32px; }
    .cookie-inner { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
    .cookie-actions .btn { flex: 0 0 auto; min-width: 150px; }
    .cookie-details { grid-column: 1 / -1; margin-top: 0; }
}

/* Short phones: keep the whole menu (items, call to action, languages) reachable without much scrolling. */
@media (max-width: 1279px) and (max-height: 840px) {
    .nav-list a { padding-block: 11px; font-size: 20px; }
    .menu-head { padding-block: 12px; }
}
