/* A-TECH local stack — design system based on the original brand tokens */
:root {
  --ink: #111111;
  --ink-soft: #222222;
  --text: #333333;
  --muted: #6f6f6f;
  --accent: #a40a1c;
  --accent-dark: #58050e;
  --paper: #ffffff;
  --surface: #fafafa;
  --line: #dcdcdc;
  --line-strong: #bcbcbc;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
  --max: 1200px;
  --header-h: 90px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 140%; }

html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.a11y-contrast {
  --ink: #ffffff;
  --ink-soft: #ffffff;
  --text: #ffffff;
  --muted: #e6e6e6;
  --accent: #ffd400;
  --accent-dark: #000000;
  --paper: #000000;
  --surface: #111111;
  --line: #555555;
  --line-strong: #888888;
}

html.a11y-contrast .site-header,
html.a11y-contrast .card,
html.a11y-contrast .contact-form,
html.a11y-contrast .a11y-panel,
html.a11y-contrast .cookie-banner {
  background: #000 !important;
  color: #fff !important;
}

html.a11y-contrast .btn-primary {
  color: #000 !important;
}

html.a11y-readable-font body {
  font-family: Verdana, Tahoma, "Trebuchet MS", sans-serif;
}

html.a11y-line-tight body { line-height: 1.45; }
html.a11y-line-loose body { line-height: 1.85; }
html.a11y-line-xloose body { line-height: 2.05; }

html.a11y-spacing-tight body { letter-spacing: 0; }
html.a11y-spacing-loose body { letter-spacing: 0.04em; }
html.a11y-spacing-xloose body { letter-spacing: 0.08em; }

html.a11y-bold body { font-weight: 500; }

html.a11y-align-left p,
html.a11y-align-left li,
html.a11y-align-left h1,
html.a11y-align-left h2,
html.a11y-align-left h3,
html.a11y-align-left blockquote {
  text-align: left !important;
}

html.a11y-hide-images .block-image,
html.a11y-hide-images .card-media,
html.a11y-hide-images .post-media,
html.a11y-hide-images .post-cover,
html.a11y-hide-images .prose img,
html.a11y-hide-images .footer-banner,
html.a11y-hide-images .footer-brand img {
  display: none !important;
}

html.a11y-highlight-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  background: rgba(164, 10, 28, 0.08);
  box-shadow: 0 0 0 2px rgba(164, 10, 28, 0.18);
  border-radius: 3px;
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.3em; }

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

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

/* ---------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(164, 10, 28, 0.25);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-light {
  background: #fff;
  color: var(--accent);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

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

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

/* ----------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 0 24px 6px rgba(0, 0, 0, 0.04);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand img {
  width: 168px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch span { color: var(--line-strong); }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 0.25rem; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--accent); }

.icon-btn,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* accessibility panel */
.a11y-panel {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--max)) / 2));
  top: calc(var(--header-h) + 8px);
  width: min(390px, calc(100vw - 3rem));
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 70;
}

.a11y-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.a11y-head-top {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.a11y-language select {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.a11y-language select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.a11y-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.a11y-close:hover { background: var(--line); }

.a11y-section-title {
  margin: 1rem 0 0.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 700; color: var(--ink); margin: 0; }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.a11y-row:first-of-type { border-top: 0; }
.a11y-buttons { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.a11y-buttons button {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.a11y-buttons button:hover { border-color: var(--accent); color: var(--accent); }

.a11y-switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.a11y-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.a11y-switch[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.a11y-switch[aria-pressed="true"]::after {
  transform: translateX(20px);
  background: #fff;
}

.a11y-reset {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.a11y-reset:hover { border-color: var(--accent); color: var(--accent); }

.a11y-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  width: 46px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: var(--accent);
  color: #fff;
  font: 700 1rem var(--font);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(164, 10, 28, 0.3);
}

.a11y-fab:hover { background: var(--accent-dark); }

/* ------------------------------------- hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero--image {
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-color: #111;
}

.hero--image::before {
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 55%, rgba(88, 5, 14, 0.55) 100%);
}

.hero--home { min-height: min(82vh, 760px); display: flex; align-items: center; }
.hero--inner { min-height: 340px; display: flex; align-items: center; }
.hero--inner:not(.hero--image)::before {
  background: radial-gradient(120% 140% at 85% 0%, rgba(164, 10, 28, 0.55) 0%, rgba(0, 0, 0, 0) 55%), #111;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 6rem) 0;
  max-width: 880px;
}

.hero .eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero-subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  max-width: 680px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero--home .hero-inner { animation: rise 0.7s ease both; }
.hero--home .eyebrow { animation: rise 0.7s 0.05s ease both; }
.hero--home .hero-subtitle { animation: rise 0.7s 0.15s ease both; }
.hero--home .hero-actions { animation: rise 0.7s 0.25s ease both; }

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

/* --------------------------------- page body */
.page-body {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.block-heading { margin-top: 2.6rem; }
.block-heading:first-child { margin-top: 0; }

.block-text {
  max-width: 780px;
  font-size: 1.05rem;
}
.block-text > p:last-child { margin-bottom: 0; }
.block-text a { font-weight: 500; }

.block-list {
  max-width: 780px;
  margin: 0 0 1.6rem;
  font-size: 1.02rem;
}
.block-list li { margin-bottom: 0.7rem; }
.block-list li::marker { color: var(--accent); }

.block-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.block-image img { width: 100%; height: auto; }

.cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}
.cards--1 { grid-template-columns: 1fr; max-width: 820px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
}
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { color: var(--muted); font-size: 0.97rem; }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.card-cta span { transition: transform 0.2s ease; }
.card:hover .card-cta span { transform: translateX(4px); }

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem 0 1rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
}
.inline-cta h2 { color: #fff; margin-bottom: 0.4rem; }
.inline-cta p { margin: 0; color: rgba(255, 255, 255, 0.86); max-width: 620px; }
.inline-cta .btn { flex-shrink: 0; }

/* ------------------------------------ contact */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card a { font-weight: 600; text-decoration: none; color: var(--ink); }
.contact-card a:hover { color: var(--accent); }

.contact-form {
  max-width: 860px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.field-label { display: inline-flex; align-items: baseline; }
.required { color: var(--accent); }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(164, 10, 28, 0.12);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0.2rem 0 1rem; }
.form-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 0.82rem; color: var(--muted); }
.form-note a { color: var(--accent); }

.form-status:empty { display: none; }
.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.form-status.success { background: #e9f7ee; color: #126b32; border: 1px solid #bde5c9; }
.form-status.error { background: #fdecee; color: #8a1122; border: 1px solid #f4c4ca; }

/* -------------------------------- publications */
.posts-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.6rem;
}
.search input {
  width: min(340px, 100%);
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(164, 10, 28, 0.12); }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.post-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-content { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.post-content h3 { margin: 0.35rem 0 0.5rem; }
.post-content p { color: var(--muted); font-size: 0.95rem; }
.post-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.empty { color: var(--muted); font-style: italic; }

/* -------------------------------------- posts */
.post-hero { padding: clamp(3rem, 6vw, 5rem) 0 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.post-hero-inner { max-width: 860px; }
.post-hero h1 { margin: 0.4rem 0 0.6rem; }
.post-lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.back-link { display: inline-block; margin-bottom: 1.4rem; font-size: 0.9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.post-cover { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; }

.post-layout { padding: 2.5rem 0 4rem; }

.prose {
  max-width: 780px;
  font-size: 1.06rem;
}
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { margin-bottom: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose img { margin: 2rem 0; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.prose blockquote {
  margin: 1.8rem 0;
  padding: 0.4rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }
.prose th { background: var(--surface); }

.related { padding: 3rem 0 4rem; background: var(--surface); border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 1.6rem; }

/* ------------------------------------- footer */
.site-footer { background: var(--surface); color: var(--text); }

.footer-cta {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
  color: #fff;
  background-image: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 100%);
}
.footer-cta h2 { color: #fff; max-width: 700px; margin-inline: auto; }
.footer-cta p { max-width: 640px; margin: 0 auto 1.6rem; color: rgba(255, 255, 255, 0.86); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr 0.9fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.footer-grid h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-brand img { width: 140px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 320px; }
.footer-grid p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.9rem; }
.footer-grid strong { color: var(--ink); font-weight: 600; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.92rem; }

.footer-banner {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}

.footer-banner img {
  width: 100%;
  max-width: 1280px;
  height: auto;
}

.cookie-footer {
  width: 100%;
  padding: 14px 20px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.cookie-footer a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-footer a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.2rem 1.5rem;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--muted); }

/* ------------------------------- cookie banner */
html.cookie-known .cookie-banner { display: none; }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(17, 17, 17, 0.12);
  padding: 1rem 0;
}

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

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-text { max-width: 760px; }
.cookie-text p { margin: 0 0 0.25rem; font-size: 0.86rem; color: var(--muted); }
.cookie-text .cookie-title {
  margin: 0 0 0.2rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}
.cookie-links { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.cookie-links a { color: var(--accent); font-weight: 500; }
.cookie-links span { color: var(--line-strong); }

.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* --------------------------------- responsive */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .brand img { width: 140px; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem 1.5rem 1.5rem;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .site-nav a { display: block; padding: 0.7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-header.nav-open .site-nav { display: block; }

  .cards--3, .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 2rem); }
  .hero--home { min-height: 70vh; }
  .hero-inner { padding: 3.5rem 0; }
  .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .posts-toolbar { justify-content: stretch; }
  .search input { width: 100%; }
  .a11y-panel { right: 1rem; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .cookie-text { max-width: none; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .a11y-fab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
