/* sortingmachines.gig.eu – main stylesheet
   No inline styles anywhere (strict Content-Security-Policy, see .htaccess).
   Design: industrial, angular – NO rounded corners anywhere (border-radius stays 0). */

/* ---------- Fonts (self-hosted Lato, latin + latin-ext for Polish) ---------- */
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lato-400-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; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-700-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lato-700-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; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/lato-900-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/lato-900-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; }

/* ---------- Tokens: ELMECH&GIG logo / machine colours ---------- */
:root {
  --blue: #004b8f;          /* logo blue – links, headings accents: 8.6:1 on white */
  --blue-dark: #00335f;
  --navy: #0a1c2e;          /* dark sections */
  --navy-2: #102a44;
  --yellow: #ffca08;        /* logo yellow / machine railings – buttons with navy text */
  --yellow-dark: #e6b400;
  --green: #8ec63f;         /* logo green – decoration only */
  --ink: #0f2235;
  --text: #34465a;
  --muted: #5a6b7c;
  --line: #dde3ea;
  --bg-soft: #f2f5f8;
  --white: #fff;
  --radius: 0;              /* angular design: no rounded corners anywhere */
  --shadow: 0 0.35rem 1.5rem rgb(10 28 46 / 0.1);
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 5rem;
  --stripes: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--navy) 14px 28px);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size-adjust: from-font;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.75em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); font-weight: 900; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 900; }
p, ul, ol, dl { margin: 0 0 1.1em; }
p { text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy); }
strong { color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; inset-block-start: -10rem; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--yellow); color: var(--navy); font-weight: 900;
}
.skip-link:focus { inset-block-start: 1rem; color: var(--navy); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.prose { max-width: 50rem; }
.prose ul { padding-inline-start: 1.25rem; }
.prose li { margin-block-end: 0.5em; }
.prose li::marker { color: var(--blue); }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.6; color: var(--ink); }

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.1rem; padding: 0.8rem 1.6rem;
  font: inherit; font-weight: 900; font-size: 0.95rem; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; text-decoration: none;
  color: var(--navy); background: var(--yellow);
  border: 2px solid var(--yellow);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { color: var(--navy); background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn--blue { color: var(--white); background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { color: var(--blue); background: transparent; border-color: var(--blue); }
.btn--ghost:hover { color: var(--white); background: var(--blue); border-color: var(--blue); }
.btn--outline-light { color: var(--white); background: transparent; border-color: var(--white); }
.btn--outline-light:hover { color: var(--navy); background: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-block-start: 1.75rem; }

/* ---------- Top bar ---------- */
.topbar { color: #c9d5e1; background: var(--navy); font-size: 0.875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.topbar__org { margin: 0; font-weight: 700; letter-spacing: 0.04em; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 0.45em; color: var(--white); text-decoration: none; }
.topbar__contact a:hover { color: var(--yellow); text-decoration: underline; }
.topbar__contact .ico { color: var(--yellow); }
@media (max-width: 47.99rem) {
  .topbar__org, .topbar__address { display: none; }
  .topbar__inner { justify-content: center; }
}

/* ---------- Header + navigation (one <nav>, popover when it does not fit; see main.js) ---------- */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 0.5rem 1.5rem rgb(10 28 46 / 0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); padding-block: 0.6rem; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { width: auto; height: clamp(2.4rem, 2rem + 1.4vw, 3.1rem); }

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.9rem;
  font: inherit; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem;
  color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); cursor: pointer;
}
.menu-button:hover { background: var(--yellow); border-color: var(--yellow); }

.site-menu {
  position: fixed; inset: auto;
  inset-block-start: 7.5rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(80dvw, 22rem); max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content; max-block-size: calc(100dvh - 6rem);
  margin: 0.5rem 0 0; padding: 0.5rem; overflow: auto; list-style: none;
  background: var(--white); border: 0; border-top: 4px solid var(--yellow); box-shadow: var(--shadow);
}
.site-menu[hidden] { display: none; }
.site-menu a {
  display: block; padding: 0.75rem 1rem;
  color: var(--ink); font-weight: 900; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem;
}
.site-menu a:hover { background: var(--bg-soft); color: var(--blue); }
.site-menu a[aria-current="page"] { color: var(--blue); box-shadow: inset 4px 0 0 var(--yellow); }
.site-menu .site-menu__cta a { margin-block-start: 0.25rem; color: var(--navy); background: var(--yellow); }
.site-menu .site-menu__cta a:hover { color: var(--navy); background: var(--yellow-dark); }
.site-menu .site-menu__cta a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-underline-offset: 0.3em; }
.site-menu::backdrop { background: rgb(10 28 46 / 0.35); }

@media (prefers-reduced-motion: no-preference) {
  .site-menu { transition: opacity 0.18s, translate 0.18s, display 0.18s, overlay 0.18s; transition-behavior: allow-discrete; }
  .site-menu:not(:popover-open) { opacity: 0; translate: 0 -0.5rem; }
  @starting-style { .site-menu:popover-open { opacity: 0; translate: 0 -0.5rem; } }
}

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 0.25rem;
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none;
  overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
  opacity: 1; translate: none; transition: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: 0.65rem 0.95rem; font-size: 0.9rem; }
.site-header.is-wide .site-menu a:hover { background: transparent; box-shadow: inset 0 -3px 0 var(--line); }
.site-header.is-wide .site-menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }
.site-header.is-wide .site-menu .site-menu__cta a { margin: 0 0 0 0.75rem; padding-inline: 1.25rem; }
.site-header.is-wide .site-menu .site-menu__cta a:hover { background: var(--yellow-dark); box-shadow: none; }
.site-header.is-wide .site-menu .site-menu__cta a[aria-current="page"] { box-shadow: none; }
.is-measuring, .is-measuring * { transition: none !important; }

@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { text-decoration: underline; }
}

/* ---------- Decorative: safety stripes + logo mark ---------- */
.stripes { height: 0.6rem; background: var(--stripes); }
.mark-deco { position: absolute; z-index: -1; pointer-events: none; opacity: 0.16; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(10 28 46 / 0.94) 0%, rgb(10 28 46 / 0.82) 38%, rgb(10 28 46 / 0.25) 75%, rgb(10 28 46 / 0.1) 100%),
    linear-gradient(0deg, rgb(10 28 46 / 0.55), transparent 40%);
}
@media (max-width: 47.99rem) {
  .hero__media::after { background: linear-gradient(180deg, rgb(10 28 46 / 0.7), rgb(10 28 46 / 0.9)); }
}
.hero__content { min-height: min(78vh, 44rem); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(4rem, 10vw, 7rem); }
.hero__content > * { max-width: 40rem; }
.hero h1 { color: var(--white); text-transform: uppercase; margin-block-end: 0.3em; }
.hero h1 span { display: block; color: var(--yellow); }
.hero__lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); font-weight: 700; line-height: 1.5; color: #e3eaf1; }
.hero .mark-deco { inset-inline-end: -4rem; inset-block-end: -3rem; width: min(55vw, 38rem); opacity: 0.12; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-block-end: 0.9rem;
  color: var(--blue); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; background: var(--yellow); }
.hero .eyebrow, .page-title .eyebrow, .section--dark .eyebrow { color: var(--yellow); }

/* Facts strip under the hero (numbers taken from the site texts) */
.facts { position: relative; z-index: 1; margin-block-start: -3.5rem; }
.facts ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: 0; padding: 0; list-style: none; background: var(--white); box-shadow: var(--shadow); }
.facts li { padding: 1.5rem 1.6rem; border-inline-start: 1px solid var(--line); border-block-start: 4px solid var(--blue); }
.facts li:nth-child(2) { border-block-start-color: var(--yellow); }
.facts li:nth-child(3) { border-block-start-color: var(--green); }
.facts li:nth-child(4) { border-block-start-color: var(--navy); }
.facts strong { display: block; color: var(--blue); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 900; line-height: 1.1; margin-block-end: 0.35rem; }
.facts span { display: block; font-size: 0.95rem; line-height: 1.45; }

/* ---------- Page title band (subpages) ---------- */
.page-title { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy); }
.page-title__bg { position: absolute; inset: 0; z-index: -2; }
.page-title__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.page-title__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 28 46 / 0.93), rgb(10 28 46 / 0.7)); }
.page-title .wrap { padding-block: clamp(3rem, 8vw, 5.5rem); }
.page-title h1 { color: var(--white); margin-block-end: 0.3em; }
.page-title p { max-width: 46rem; margin: 0; font-size: 1.15rem; color: #e3eaf1; }
.page-title .mark-deco { inset-inline-end: -2rem; inset-block-end: -2.5rem; width: min(40vw, 22rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.9rem; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.35rem; color: var(--yellow); }
.breadcrumbs a { color: var(--white); }
.breadcrumbs a:hover { color: var(--yellow); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--bg-soft); }
.section--dark { color: #c9d5e1; background: var(--navy); }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--white); }
.section--dark a:not(.btn) { color: var(--yellow); }
.section__head { max-width: 48rem; margin-block-end: 2.5rem; }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* Framed photo: offset yellow block behind the image */
.frame { position: relative; margin: 0; isolation: isolate; }
.frame::before { content: ""; position: absolute; z-index: -1; inset: 1.25rem -1.25rem -1.25rem 1.25rem; background: var(--yellow); }
.frame--blue::before { background: var(--blue); }
.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.frame figcaption { margin-block-start: 1.9rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 47.99rem) { .frame::before { inset: 0.75rem -0.5rem -0.75rem 0.75rem; } }

/* Check list */
.checklist { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.checklist > li { position: relative; padding-inline-start: 2.25rem; margin-block-end: 0.9rem; }
.checklist > li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.22em;
  width: 1.4rem; height: 1.4rem;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='square'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.section--dark .checklist > li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1c2e' stroke-width='3.2' stroke-linecap='square'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.checklist--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 0.25rem 2.5rem; }

/* Offer: numbered service blocks */
.services { counter-reset: svc; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.service {
  counter-increment: svc; position: relative; display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem); padding-block-start: clamp(3.75rem, 6vw, 4.5rem);
  background: var(--white); border: 1px solid var(--line); border-block-start: 5px solid var(--blue); box-shadow: var(--shadow);
}
.service::before {
  content: "0" counter(svc); position: absolute; inset-block-start: 1.1rem; inset-inline-start: clamp(1.5rem, 3vw, 2rem);
  font-size: 1.9rem; font-weight: 900; line-height: 1; color: var(--yellow-dark);
}
.service:nth-child(2) { border-block-start-color: var(--yellow); }
.service:nth-child(3) { border-block-start-color: var(--green); }
.service h3 { margin-block-end: 0.6em; }
.service p { margin-block-end: 0.8em; }
.service > :last-child { margin-block-end: 0; }
.service .more { margin-block-start: auto; padding-block-start: 0.5rem; font-weight: 900; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Wide service rows on the offer page */
.offer-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.offer-item { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.offer-item__num { display: block; margin-block-end: 0.5rem; font-size: 3rem; font-weight: 900; line-height: 1; color: var(--yellow-dark); }
@media (min-width: 60rem) {
  .offer-item { grid-template-columns: 1fr 1fr; }
  .offer-item:nth-child(even) > :first-child { order: 2; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.gallery li { margin: 0; overflow: hidden; background: var(--navy-2); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .gallery img { transition: scale 0.5s ease, opacity 0.3s; }
  .gallery li:hover img { scale: 1.04; }
}
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery figcaption { padding: 0.5rem 0.75rem; font-size: 0.85rem; color: #c9d5e1; }

/* Panorama band */
.panorama { margin: 0; background: var(--navy); }
.panorama img { width: 100%; height: clamp(10rem, 26vw, 24rem); object-fit: cover; }

/* Patent / highlight box */
.callout { position: relative; padding: 1.5rem 1.75rem; margin-block: 2rem; background: var(--bg-soft); border-inline-start: 5px solid var(--yellow); }
.callout p:last-child { margin: 0; }

/* Download (PDF) */
.download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-block-start: 5px solid var(--yellow); box-shadow: var(--shadow); }
.download h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-block-end: 0.3em; }
.download p { margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-card { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border-block-start: 5px solid var(--yellow); box-shadow: var(--shadow); }
.contact-card h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); }
.contact-card .org { margin-block-end: 1.25rem; color: var(--ink); line-height: 1.5; }
.contact-card .org strong { display: block; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-card .btn { white-space: normal; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.contact-list { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list .ico { margin-block-start: 0.3em; color: var(--blue); }
.mail-tips { padding: clamp(1.5rem, 4vw, 2.25rem); color: #c9d5e1; background: var(--navy); }
.mail-tips h2 { color: var(--white); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.mail-tips .checklist > li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1c2e' stroke-width='3.2' stroke-linecap='square'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.mail-tips p:last-child { margin: 0; font-size: 0.95rem; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: #d7e2ec; background: var(--blue); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.75rem, 6vw, 4rem); }
.cta-band h2 { color: var(--white); margin-block-end: 0.3em; }
.cta-band p { margin: 0; max-width: 40rem; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn { text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.cta-band .mark-deco { inset-inline-end: 2%; inset-block-start: 50%; translate: 0 -50%; width: 16rem; opacity: 0.1; }

/* ---------- Footer ---------- */
.site-footer { color: #b9c7d5; background: var(--navy); font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; margin-block-end: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-block-end: 0.5rem; }
.footer-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-end: 1.25rem; }
.footer-logos a { display: inline-flex; align-items: center; padding: 0.8rem 1rem; background: var(--white); }
.footer-logos img { width: auto; height: 2.6rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact .ico { margin-block-start: 0.3em; color: var(--yellow); }
.bottom-bar { border-block-start: 1px solid rgb(255 255 255 / 0.12); font-size: 0.875rem; }
.bottom-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 1.25rem; }
.bottom-bar p { margin: 0; }
.bottom-bar ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.bottom-bar li { margin: 0; }

/* ---------- Accessibility statement / legal text ---------- */
.legal h2 { margin-block-start: 2em; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); }
.legal h3 { margin-block-start: 1.5em; }
.legal h2:first-child { margin-block-start: 0; }

/* ---------- 404 ---------- */
.notfound { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.notfound__code {
  display: block; margin-block-end: 0.5rem;
  font-size: clamp(6rem, 4rem + 14vw, 12rem); font-weight: 900; line-height: 1;
  color: var(--blue);
  background: linear-gradient(110deg, var(--yellow) 0 33%, var(--blue) 33% 66%, var(--green) 66% 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.notfound p { max-width: 36rem; margin-inline: auto; }
.notfound .btn-row { justify-content: center; }
.notfound__links { margin-block-start: 2.75rem; }
.notfound__links h2 { font-size: 1.15rem; }
.notfound__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.notfound__links a { display: inline-block; padding: 0.45rem 1rem; text-decoration: none; font-weight: 700; border: 2px solid var(--line); }
.notfound__links a:hover { border-color: var(--blue); }
.notfound .mark-deco { inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%; width: min(90vw, 40rem); opacity: 0.06; }
@media (prefers-reduced-motion: no-preference) {
  .notfound__code { animation: float-in 0.7s ease-out both; }
  @keyframes float-in { from { opacity: 0; translate: 0 1rem; } }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .skip-link, .stripes, .mark-deco { display: none !important; }
  .page-title, .hero, .section--dark { color: #000; background: none; }
  .page-title h1, .hero h1, .section--dark h2 { color: #000; }
  .page-title__bg, .hero__media { display: none; }
  .facts { margin: 0; }
}
