/* monitoringjakoscipowietrza.pl (Eko Patrol GIG) - main stylesheet
   No inline styles anywhere (strict Content-Security-Policy, see .htaccess). */

/* ---------- 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 (Eko Patrol colours: lime + sky blue from the programme's identity) ---------- */
:root {
  --lime: #8dc63f;           /* decoration only */
  --sky: #2bb5d9;            /* decoration only */
  --blue: #0b6189;           /* buttons, links: 6.6:1 on white */
  --blue-dark: #084a69;
  --green-text: #3b7317;     /* green text on white: 5.6:1 */
  --ink: #142b3a;            /* headings */
  --text: #3a4b58;           /* body text */
  --muted: #5a6a76;
  --line: #dde6ec;
  --bg-soft: #f2f7fa;
  --bg-alt: #eef7e6;
  --white: #fff;
  --footer: #0f2533;
  --radius: 0;               /* no rounded corners anywhere (as on the other GIG sites) */
  --shadow: 0 0.25rem 1.25rem rgb(20 43 58 / 0.08);
  --grad: linear-gradient(120deg, var(--sky), var(--lime));
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4.5rem;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 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.25; margin: 0 0 0.75em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 900; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 700; }
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(--sky); outline-offset: 3px; border-radius: 0; }
strong { color: var(--ink); }
sup { line-height: 0; }

.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(--ink); color: var(--white); font-weight: 700; border-radius: var(--radius);
}
.skip-link:focus { inset-block-start: 1rem; color: var(--white); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.prose { max-width: 50rem; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li { margin-block-end: 0.5em; }
.prose li::marker { color: var(--blue); }
.lead { font-size: 1.15em; color: var(--ink); }
.note { font-size: 0.95rem; color: var(--muted); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--white); background: var(--blue);
  border: 2px solid var(--blue); border-radius: var(--radius);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { color: var(--blue); background: transparent; }
.btn--ghost:hover { color: var(--white); }
.btn--light { color: var(--ink); background: var(--white); border-color: var(--white); }
.btn--light:hover { color: var(--ink); background: var(--bg-alt); border-color: var(--bg-alt); }
.btn--outline-light { color: var(--white); background: transparent; border-color: var(--white); }
.btn--outline-light:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-block-start: 1.5rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d8e3ea; 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.4rem; }
.topbar__question { font-weight: 700; color: var(--white); }
.topbar__question:hover { color: var(--lime); }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 0.4em; color: #d8e3ea; text-decoration: none; }
.topbar__contact a:hover { color: var(--white); text-decoration: underline; }
.topbar__contact .ico { color: var(--lime); }
@media (max-width: 47.99rem) {
  .topbar__question, .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: rgb(255 255 255 / 0.97); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); padding-block: 0.5rem; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }

/* Wordmark (the site has no logo: hexagon mark + name) */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 2.6rem; height: 2.6rem; }
.brand__name { display: flex; flex-direction: column; }
.brand__name strong { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.01em; }
.brand__name strong sup { font-size: 0.55em; color: var(--green-text); }
.brand__name small { font-size: 0.76rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 26.5rem) {
  .header-inner { gap: 0.75rem; }
  .site-header .brand__name small { display: none; }
  .site-header .brand__mark { width: 2.2rem; height: 2.2rem; }
}
.site-footer .brand, .site-footer .brand:hover { color: var(--white); }
.site-footer .brand strong { color: var(--white); }
.site-footer .brand strong sup { color: var(--lime); }
.site-footer .brand small { color: #b9c8d2; }

.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: 700; color: var(--ink); background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.menu-button:hover { border-color: var(--sky); }

.site-menu {
  position: fixed; inset: auto;
  inset-block-start: 7rem;
  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: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.site-menu[hidden] { display: none; }
.site-menu a {
  display: block; padding: 0.75rem 1rem; border-radius: var(--radius);
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.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(--lime); }
.site-menu .site-menu__cta a { margin-block-start: 0.25rem; color: var(--white); background: var(--blue); border-radius: var(--radius); text-align: center; }
.site-menu .site-menu__cta a:hover { color: var(--white); background: var(--blue-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(15 37 51 / 0.3); }

@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.15rem;
  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.55rem 0.8rem; font-size: 0.98rem; }
.site-header.is-wide .site-menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.site-header.is-wide .site-menu .site-menu__cta a { margin: 0 0 0 0.5rem; padding-inline: 1.25rem; border-radius: var(--radius); }
.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; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--grad); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(10 30 44 / 0.9) 0%, rgb(10 30 44 / 0.66) 48%, rgb(10 30 44 / 0.15) 100%),
    linear-gradient(0deg, rgb(10 30 44 / 0.5), transparent 40%);
}
.hero__content { padding-block: clamp(4rem, 12vw, 8.5rem); max-width: 40rem; }
.hero h1 { color: var(--white); margin-block-end: 0.4em; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); }
.hero h1 sup { font-size: 0.4em; vertical-align: super; color: var(--lime); }
.hero__lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); text-wrap: pretty; }
.hero .btn-row { margin-block-start: 2rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-block-end: 1.25rem; padding: 0.35rem 0.9rem;
  font-size: 0.82rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); background: var(--lime); border-radius: var(--radius);
}
.params { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.params li { padding: 0.3rem 0.85rem; font-size: 0.9rem; font-weight: 700; border: 1px solid rgb(255 255 255 / 0.45); border-radius: var(--radius); background: rgb(255 255 255 / 0.08); }
@media (max-width: 40rem) {
  .hero__media::after { background: linear-gradient(180deg, rgb(10 30 44 / 0.72), rgb(10 30 44 / 0.9)); }
}

/* ---------- Page title band (subpages) ---------- */
.page-title { position: relative; isolation: isolate; color: var(--white); background: var(--ink); }
.page-title__bg { position: absolute; inset: 0; z-index: -1; }
.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 30 44 / 0.92), rgb(10 30 44 / 0.62)); }
.page-title::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--grad); }
.page-title .wrap { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.page-title h1 { color: var(--white); margin-block-end: 0.35em; }
.page-title p { max-width: 46rem; margin: 0; font-size: 1.1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.9rem; }
.breadcrumbs li + li::before { content: "›"; margin-inline-end: 0.35rem; opacity: 0.8; }
.breadcrumbs a { color: var(--white); }
.breadcrumbs a:hover { color: var(--lime); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--alt { background: var(--bg-soft); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section__head { max-width: 46rem; margin-block-end: 2.25rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head > :last-child { margin-block-end: 0; }
.eyebrow { display: flex; align-items: center; gap: 0.6rem; margin-block-end: 0.6rem; color: var(--green-text); font-size: 0.85rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.75rem; height: 4px; border-radius: 0; background: var(--grad); }
.section__head--center .eyebrow { justify-content: center; }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--center { align-items: center; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.stats li { position: relative; padding: 1.4rem 1.25rem 1.25rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stats li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.stats strong { display: block; color: var(--blue); font-size: 1.55rem; font-weight: 900; line-height: 1.15; margin-block-end: 0.3rem; }
.stats span { display: block; font-size: 0.95rem; line-height: 1.45; }
@media (max-width: 26rem) { .stats { grid-template-columns: 1fr; } }

/* Feature rows (programme elements) */
.features { display: grid; gap: clamp(3rem, 7vw, 5rem); margin: 0; padding: 0; list-style: none; }
.feature { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; isolation: isolate; }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(even) .feature__media { order: 2; }
}
.feature__media { position: relative; margin: 0; }
.feature__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature__media::after {
  content: ""; position: absolute; inset-inline-end: -0.75rem; inset-block-end: -0.75rem; z-index: -1;
  width: 40%; height: 50%; border-radius: var(--radius); background: var(--grad); opacity: 0.85;
}
.feature:nth-child(even) .feature__media::after { inset-inline-end: auto; inset-inline-start: -0.75rem; }
.feature__num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-block-end: 0.75rem; color: var(--white); background: var(--blue); border-radius: var(--radius); font-weight: 900; }
.feature h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
.feature__body > :last-child { margin-block-end: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li { padding: 0.15rem 0.7rem; font-size: 0.85rem; font-weight: 700; color: var(--blue-dark); background: #e3f3f9; border-radius: var(--radius); }

/* Numbered steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 3.9rem 1.4rem 1.4rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; inset-inline-start: 1.4rem; inset-block-start: 1.1rem;
  font-size: 2rem; font-weight: 900; line-height: 1;
  color: var(--blue); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.steps h3 { font-size: 1.1rem; margin-block-end: 0.4em; }
.steps p { margin: 0; font-size: 0.98rem; }

/* Check list */
.checklist { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.checklist > li { position: relative; padding-inline-start: 2.1rem; margin-block-end: 0.85rem; }
.checklist > li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.2em;
  width: 1.35rem; height: 1.35rem; border-radius: var(--radius);
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.card h3 { margin-block-end: 0.6em; }
.card > :last-child { margin-block-end: 0; }

/* Video facades (click-to-load YouTube, see main.js) */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.video { margin: 0; }
.video figcaption { margin-block-start: 0.75rem; font-weight: 700; color: var(--ink); }
.video__frame { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--ink); box-shadow: var(--shadow); }
.video__frame img, .video__frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__frame img { transition: scale 0.4s, opacity 0.3s; }
.video__frame:hover img { scale: 1.03; opacity: 0.85; }
.video__play {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: var(--radius);
  color: var(--white); background: rgb(11 97 137 / 0.92); box-shadow: 0 0 0 0.5rem rgb(255 255 255 / 0.25);
}
.video__play svg { width: 1.8rem; height: 1.8rem; margin-inline-start: 0.2rem; fill: currentColor; stroke: none; }
.video__frame:hover .video__play { background: var(--blue-dark); }
.video__note { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--muted); font-weight: 400; }

/* Partners (cities that worked with us) */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.partner { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partner img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; padding: 0.4rem; }
.partner__name { margin: 0; padding: 0.55rem 0.9rem 0.8rem; font-weight: 700; color: var(--ink); line-height: 1.35; border-block-start: 1px solid var(--line); }
.partner__name a { display: block; margin-block-start: 0.2rem; font-size: 0.92rem; }

/* Press list (media page) */
.press { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.press-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.press-card__logo { display: grid; place-items: center; height: 8rem; padding: 1rem 1.5rem; background: var(--white); border-block-end: 1px solid var(--line); }
.press-card__logo img { width: auto; max-width: 100%; height: auto; max-height: 6rem; object-fit: contain; }
.press-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
.press-card h3 { font-size: 1.05rem; margin-block-end: 0.5em; }
.press-card p { font-size: 0.97rem; margin-block-end: 0.75em; }
.press-card__more { margin-block-start: auto; margin-block-end: 0; font-weight: 700; }
.press-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: 0.75rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.press-logos li { display: grid; place-items: center; height: 5.5rem; padding: 0.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.press-logos img { width: auto; max-width: 100%; height: auto; max-height: 4rem; object-fit: contain; }

/* Quotes */
.quote { margin: 1.75rem 0; padding: 1.25rem 1.5rem; background: var(--bg-soft); border-inline-start: 4px solid var(--lime); border-radius: var(--radius); }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote footer { font-size: 0.92rem; color: var(--muted); }
.quote > :last-child { margin-block-end: 0; }

/* Figures */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption { margin-block-start: 0.5rem; font-size: 0.9rem; color: var(--muted); }

/* Downloads */
.downloads { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.downloads a { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; font-weight: 700; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.downloads a:hover { border-color: var(--blue); }
.downloads small { margin-inline-start: auto; font-weight: 400; color: var(--muted); white-space: nowrap; }

/* Contact */
.contact-card { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--grad); }
.contact-card .btn { font-size: 1.1rem; white-space: normal; overflow-wrap: anywhere; }
.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); }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: linear-gradient(120deg, #0a3d57, var(--blue) 55%, #13809a); }
.cta-band::before { content: ""; position: absolute; inset: auto -4rem -7rem auto; z-index: -1; width: 22rem; height: 22rem; background: var(--grad); opacity: 0.35; clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.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 a:not(.btn) { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { color: #ccd8e0; background: var(--footer); font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: 0.08em; 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; }
.site-footer .brand { margin-block-end: 1rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact .ico { margin-block-start: 0.3em; color: var(--lime); }
.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; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__code {
  display: block; margin-block-end: 0.5rem;
  font-size: clamp(6rem, 4rem + 12vw, 11rem); font-weight: 900; line-height: 1;
  color: var(--blue);
  background: linear-gradient(120deg, var(--blue), var(--sky) 50%, var(--lime));
  -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.5rem; }
.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.4rem 0.9rem; text-decoration: none; font-weight: 700; border: 1px solid var(--line); border-radius: var(--radius); }
.notfound__links a:hover { border-color: var(--blue); }
@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; } }
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .skip-link { display: none !important; }
  .page-title, .hero { color: #000; background: none; }
  .page-title h1, .hero h1 { color: #000; }
  .page-title__bg, .hero__media { display: none; }
}
