/* FIBE - Fundacja Instytut Bezpieczeństwa Europejskiego */
:root {
  --navy: #1f3f6b;
  --navy-deep: #0f1a2e;
  --navy-mid: #2a5080;
  --red: #c62828;
  --red-hot: #e03030;
  --ink: #12141a;
  --muted: #5a6270;
  --line: rgba(31, 63, 107, 0.12);
  --paper: #f7f8fb;
  --white: #ffffff;
  --glow: rgba(31, 63, 107, 0.18);
  --radius: 2px;
  --nav-h: 4.5rem;
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* --- Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(15, 26, 46, 0.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 560;
  white-space: normal;
  line-height: 1.2;
  max-width: 15rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

/* --- Hero --- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 60% at 12% 50%, rgba(42, 80, 128, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(198, 40, 40, 0.14), transparent 50%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 48%, #163356 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 50%, #000 25%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.25rem) 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
}

.hero-logo-lockup {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  min-width: 0;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

.hero-logo-mark {
  width: clamp(5.5rem, 12vw, 8.5rem);
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  display: block;
}

.hero-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding-top: 0.15rem;
}

.hero-logo-kicker {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1;
}

.hero-logo-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  font-weight: 520;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-logo {
  display: none;
}

.hero-copy {
  min-width: 0;
}

.hero-copy::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--red);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.12s forwards;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.18s forwards;
}

.hero-lead {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.hero-actions .btn {
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hot);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* --- Layout --- */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.section-head p,
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-alt {
  background: var(--white);
}

.section-navy {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
}

.section-navy h2 {
  color: var(--white);
}

.section-navy .eyebrow {
  color: #ff8a80;
}

.section-navy .lede {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* --- About / purpose --- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.split p:last-child {
  margin-bottom: 0;
}

.purpose-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.purpose-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(224, 48, 48, 0.35), transparent 65%);
  pointer-events: none;
}

.purpose-panel h3 {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 520;
  color: var(--white);
}

.purpose-panel p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

/* --- Areas --- */
.areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 3.5rem;
}

.areas-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
}

.areas-list li:nth-child(odd) {
  padding-right: 0;
  border-right: 0;
}

.areas-list .idx {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 520;
  line-height: 1.15;
  color: var(--red);
  min-width: 2rem;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 0.55rem;
}

.areas-list .idx::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.35rem;
  height: 2px;
  background: var(--red);
  opacity: 0.55;
}

.areas-list li span:last-child {
  padding-top: 0.2rem;
  border-top: 1px solid transparent;
  transition: color 0.2s var(--ease);
}

.areas-list li:hover span:last-child {
  color: var(--navy);
}

/* --- How we work --- */
.methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.method {
  padding-top: 1.15rem;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.method h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 520;
  color: var(--white);
}

.method p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

/* --- News --- */
.news-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.news-meta {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}

.news-date {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.news-meta h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.25;
  color: var(--navy-deep);
}

.news-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.news-body p:last-child {
  margin-bottom: 0;
}

.news-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.news-gallery {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
}

.news-gallery-label {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.news-gallery-grid > figure {
  margin: 0;
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(2.75rem, auto);
  gap: 0.65rem;
}

.news-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--navy-deep);
  cursor: zoom-in;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.news-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s var(--ease);
}

.news-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 26, 46, 0.5) 100%);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.news-photo-num {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 520;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}

.news-photo:hover img,
.news-photo:focus-visible img {
  transform: scale(1.03);
}

.news-photo:hover::after,
.news-photo:focus-visible::after {
  opacity: 0.45;
}

.news-photo:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.news-gallery-grid > figure > figcaption {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.35;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(15, 26, 46, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  max-width: min(96vw, 1100px);
  max-height: min(72vh, 780px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
  max-width: 40rem;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  border-radius: var(--radius);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  border-radius: var(--radius);
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

body.lightbox-open {
  overflow: hidden;
}

/* --- Reports --- */
.reports-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.reports-box p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.reports-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.reports-aside h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.reports-aside ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reports-aside li + li {
  margin-top: 0.4rem;
}

.reports-placeholder {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed rgba(31, 63, 107, 0.28);
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(31, 63, 107, 0.03);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.contact-details h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy-deep);
}

.contact-details address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.contact-details a {
  font-weight: 560;
  text-decoration: none;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.legal-ids {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.contact-form h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-deep);
}

.form-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px var(--glow);
  background: var(--white);
}

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

.form-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-consent input {
  margin-top: 0.2rem;
  accent-color: var(--navy);
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

.form-status[data-state="ok"] { color: #1b7a3e; }
.form-status[data-state="err"] { color: var(--red); }

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 1.25rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  justify-self: start;
  min-width: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.9rem;
  text-decoration: none;
  color: var(--white);
  max-width: 100%;
}

.footer-logo img {
  display: block;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  line-height: 1.2;
}

.footer-logo-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8a80;
}

.footer-logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 520;
  color: var(--white);
  line-height: 1.25;
  max-width: 16rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 28ch;
  line-height: 1.45;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  pointer-events: auto;
  max-width: 52rem;
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 -8px 40px rgba(15, 26, 46, 0.14);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem;
}

.cookie-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 560;
  color: var(--navy-deep);
}

.cookie-text {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-text a {
  font-weight: 560;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn-cookie-secondary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-cookie-secondary:hover {
  background: var(--navy-mid);
  color: var(--white);
}

.btn-cookie-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-cookie-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.cookie-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cookie-panel[hidden] {
  display: none !important;
}

.cookie-cat {
  margin-bottom: 0.9rem;
}

.cookie-cat p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-cat-head strong {
  font-size: 0.92rem;
  color: var(--navy-deep);
}

.cookie-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  background: rgba(31, 63, 107, 0.08);
  color: var(--navy);
  font-size: 0.85rem;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cookie-switch-ui {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #cfd5de;
  position: relative;
  transition: background 0.2s var(--ease);
}

.cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease);
}

.cookie-switch input:checked + .cookie-switch-ui {
  background: var(--navy);
}

.cookie-switch input:checked + .cookie-switch-ui::after {
  transform: translateX(1.15rem);
}

.cookie-switch input:focus-visible + .cookie-switch-ui {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

body.has-cookie-banner {
  padding-bottom: 0;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 0.65rem;
  }

  .cookie-banner-inner {
    padding: 1rem;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* --- Legal pages --- */
.legal-page {
  padding: 3rem 1.25rem 5rem;
}

.legal-page .section-inner {
  max-width: 46rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy-deep);
  margin: 0 0 0.5rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--navy-deep);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-note {
  background: rgba(31, 63, 107, 0.05);
  border-left: 3px solid var(--navy);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .split,
  .news-article,
  .reports-box,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .news-meta {
    position: static;
  }

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

  .areas-list {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .areas-list li:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }

  .brand-name {
    max-width: 14rem;
  }
}

@media (max-width: 900px) {
  .news-gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news-photo {
    aspect-ratio: 16 / 10;
  }

  .lightbox-nav {
    top: auto;
    bottom: 4.5rem;
    translate: none;
  }

  .lightbox-prev { left: calc(50% - 3.5rem); }
  .lightbox-next { right: calc(50% - 3.5rem); }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(247, 248, 251, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }

  .nav-panel.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .lang-switch {
    align-self: flex-start;
  }
}

@media (max-width: 780px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    justify-items: center;
    text-align: center;
  }

  .hero-brand {
    align-items: center;
    width: 100%;
  }

  .hero-logo-lockup {
    max-width: 28rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-logo-text {
    align-items: center;
    padding-top: 0;
  }

  .hero-logo-mark {
    width: clamp(4.5rem, 22vw, 6rem);
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy::before {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-lead {
    max-width: 36rem;
  }

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

  .brand-name {
    max-width: 12.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo-lockup,
  .hero-copy::before,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
