/* PSNET Invest Kft. — main stylesheet
   ─────────────────────────────────────
   All theming via CSS custom properties on :root so Tweaks can swap them.
*/

:root {
  /* Palette: fehér + erdőzöld + szén */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-sunken: #f1f5f3;
  --ink: #1a1a1a;
  --ink-2: #2a2a2a;
  --ink-soft: #4a4a4a;
  --muted: #8a8580;
  --accent: #2d4a3e;
  --accent-soft: #4a6356;
  --line: rgba(26, 26, 26, 0.10);
  --line-strong: rgba(26, 26, 26, 0.20);
  --shadow: 0 1px 0 rgba(26, 26, 26, 0.04), 0 8px 24px -12px rgba(26, 26, 26, 0.18);

  /* Dark section interludes — forest green */
  --ink-section-bg: #2d4a3e;
  --ink-section-fg: #ffffff;
  --ink-section-line: rgba(255, 255, 255, 0.14);
  --ink-section-line-strong: rgba(255, 255, 255, 0.28);
  --ink-section-soft: rgba(255, 255, 255, 0.82);
  --ink-section-muted: rgba(255, 255, 255, 0.58);
  /* Accent shade used INSIDE a section--ink (forest-on-forest is invisible). */
  --accent-on-ink: #c8b896;

  /* Type system */
  --font-display: "Cormorant Garamond", "Source Serif 4", Georgia, serif;
  --font-body: "IBM Plex Sans", "Work Sans", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  --container: 1280px;

  /* Scale */
  --step-1: clamp(0.78rem, 0.76rem + 0.1vw, 0.85rem);
  --step-0: clamp(0.92rem, 0.88rem + 0.2vw, 1.0rem);
  --step-up-1: clamp(1.1rem, 1.0rem + 0.5vw, 1.25rem);
  --step-up-2: clamp(1.4rem, 1.2rem + 1vw, 1.75rem);
  --step-up-3: clamp(1.8rem, 1.4rem + 2vw, 2.5rem);
  --step-up-4: clamp(2.4rem, 1.8rem + 3vw, 3.75rem);
  --step-up-5: clamp(3.2rem, 2.4rem + 4vw, 5.5rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--bg); }

/* ──────────── Layout primitives ──────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

.section {
  padding: clamp(80px, 8vw, 140px) 0;
  position: relative;
}
.section--tight { padding: clamp(60px, 6vw, 100px) 0; }
.section--alt { background: var(--bg-sunken); }
.section--ink {
  background: var(--ink-section-bg, var(--ink));
  color: var(--ink-section-fg, var(--bg));
}
.section--ink {
  --line: var(--ink-section-line, rgba(245, 243, 238, 0.14));
  --line-strong: var(--ink-section-line-strong, rgba(245, 243, 238, 0.28));
  --ink-soft: var(--ink-section-soft, rgba(245, 243, 238, 0.78));
  --muted: var(--ink-section-muted, rgba(245, 243, 238, 0.55));
  /* Swap accent to the on-ink variant so accent text reads against forest green. */
  --accent: var(--accent-on-ink, #d4b896);
}
/* White cards INSIDE a forest-green section: reset color tokens so the card
   reads like it does on a normal white surface, otherwise white-on-white text. */
.section--ink .cell {
  color: var(--ink);
  --accent: #2d4a3e;
  --ink-soft: #4a4a4a;
  --muted: #8a8580;
  --line: rgba(26, 26, 26, 0.10);
  --line-strong: rgba(26, 26, 26, 0.20);
}

/* ──────────── Type ──────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-size: var(--step-up-5);
  margin: 0;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: var(--step-up-4);
  margin: 0 0 24px;
  max-width: 22ch;
}

h3.subtitle {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-up-2);
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.lede {
  font-size: var(--step-up-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
  font-weight: 300;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  letter-spacing: 0.02em;
}

.numeral {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-up-5);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "lnum";
}

/* ──────────── Buttons ──────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
}
.btn:hover { background: #1f3a2e; border-color: #1f3a2e; }
.btn--ghost {
  background: transparent;
  color: var(--accent);
}
.btn--ghost:hover { background: var(--accent); color: var(--bg); }
.btn--accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--accent:hover { background: #1f3a2e; border-color: #1f3a2e; }

.btn .arrow {
  width: 12px; height: 12px;
  display: inline-block;
  position: relative;
}
.btn .arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .18s ease, color .18s ease;
}
.link-inline:hover { border-color: var(--accent); color: var(--accent); }

/* ──────────── Navigation ──────────── */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}
@media (max-width: 1100px) {
  .brand__sub { display: none; }
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
  transition: color .15s;
  cursor: pointer;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__cta {
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav__cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }
  .nav__menu.is-open .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__menu.is-open .nav__cta { margin-top: 12px; text-align: center; }
}
.nav__burger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  background: transparent;
  position: relative;
  border-radius: 0;
}
.nav__burger span, .nav__burger::before, .nav__burger::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 1px;
  background: var(--ink);
}
.nav__burger::before { top: 12px; }
.nav__burger span { top: 50%; transform: translateY(-50%); }
.nav__burger::after { bottom: 12px; }
@media (max-width: 900px) {
  .nav__burger { display: block; }
}

/* ──────────── Hero ──────────── */

.hero {
  padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 6vw, 100px);
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
.hero__inner.hero--split {
  grid-template-columns: 1.4fr 1fr;
}
.hero__inner.hero--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.hero__inner.hero--centered .lede { margin: 0 auto; text-align: center; }
.hero__inner.hero--centered .eyebrow { justify-content: center; }
.hero--minimal { padding-top: clamp(40px, 6vw, 80px); }
.hero--minimal .display { font-size: var(--step-up-4); }
@media (max-width: 900px) {
  .hero__inner.hero--split { grid-template-columns: 1fr; }
}

.hero__meta {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__meta-item {
  flex: 1;
  min-width: 140px;
}
.hero__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero__meta-value {
  font-family: var(--font-display);
  font-size: var(--step-up-1);
  font-weight: 500;
  color: var(--ink);
}

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-sunken);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero__visual--wide { aspect-ratio: 5 / 4; }

/* ──────────── Image placeholders ──────────── */

.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      var(--placeholder-stripe, rgba(0, 0, 0, 0.04)) 0 2px,
      transparent 2px 12px
    ),
    var(--bg-sunken);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  overflow: hidden;
}
.placeholder__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg);
  padding: 6px 10px;
  border: 1px solid var(--line);
  z-index: 1;
  color: var(--ink-soft);
}
/* Placeholders inside a section--ink invert: use the section's bg + fg. */
.section--ink .placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.05) 0 2px,
      transparent 2px 12px
    );
  background-color: color-mix(in srgb, var(--ink-section-bg) 88%, var(--ink-section-fg) 12%);
  border-color: var(--line);
}
.section--ink .placeholder__label {
  background: var(--ink-section-bg);
  color: var(--ink-section-fg);
  border-color: var(--line);
}
/* Legacy alias — kept for any direct .placeholder--dark usage. */
.placeholder--dark {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.05) 0 2px,
      transparent 2px 12px
    );
  background-color: color-mix(in srgb, var(--ink-section-bg, var(--ink)) 88%, var(--ink-section-fg, var(--bg)) 12%);
  border-color: var(--line);
}
.placeholder--dark .placeholder__label {
  background: var(--ink-section-bg, var(--ink));
  color: var(--ink-section-fg, var(--bg));
  border-color: var(--line);
}

/* ──────────── Cards / Grids ──────────── */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: clamp(40px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.cell {
  background: var(--bg);
  padding: 40px 32px;
}
.cell--alt { background: var(--bg-sunken); }
.cell__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 24px;
}
.cell__title {
  font-family: var(--font-display);
  font-size: var(--step-up-2);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
}
.cell__body {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* ──────────── Property listing ──────────── */

.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .filters { grid-template-columns: 1fr 1fr; }
}
.filter {
  background: var(--bg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter select, .filter input {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 0;
  outline: none;
  appearance: none;
}
.filter--btn {
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
}
.filter--btn:hover { background: #1f3a2e; }

.property-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1024px) { .property-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .property-list { grid-template-columns: 1fr; } }

.property {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}
.property:hover { border-color: var(--accent); }
.property__img {
  aspect-ratio: 4 / 3;
}
.property__body {
  padding: 24px;
}
.property__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.property__meta span:last-child { color: var(--accent); }
.property__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.2;
}
.property__location {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.property__stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.property__stats b {
  color: var(--ink);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 14px;
  display: block;
}

/* ──────────── Calculator ──────────── */

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc__form {
  background: var(--bg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc__row { display: flex; flex-direction: column; gap: 10px; }
.calc__lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc__lbl b { color: var(--ink); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 500; }
.calc input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}
.calc input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  margin-top: -7px;
}
.calc input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  border: 0;
}
.calc__opts { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.calc__opt {
  flex: 1;
  padding: 12px;
  background: var(--bg);
  border: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.calc__opt.is-active { background: var(--ink); color: var(--bg); }

.calc__result {
  background: var(--ink-section-bg, var(--ink));
  color: var(--ink-section-fg, var(--bg));
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.calc__result-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.calc__price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  font-weight: 400;
  margin: 16px 0 8px;
  letter-spacing: -0.015em;
  color: var(--ink-section-fg, var(--bg));
}
.calc__price small {
  font-size: 0.4em;
  color: var(--ink-section-muted, rgba(245, 243, 238, 0.6));
  font-family: var(--font-mono);
  margin-left: 8px;
  letter-spacing: 0.05em;
}
.calc__breakdown { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.calc__breakdown div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--ink-section-line, rgba(245, 243, 238, 0.14));
  color: var(--ink-section-soft, rgba(245, 243, 238, 0.8));
}
.calc__breakdown div b { color: var(--ink-section-fg, var(--bg)); font-weight: 500; }
.calc__note { color: var(--ink-section-muted, rgba(245, 243, 238, 0.55)); font-size: 11px; }

/* ──────────── Forms ──────────── */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form .form__row--full { grid-column: 1 / -1; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form__field input, .form__field textarea, .form__field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
  border-radius: 0;
  width: 100%;
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus {
  border-color: var(--accent);
}
.form__field textarea { resize: vertical; min-height: 96px; }

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.form__check input { margin-top: 2px; accent-color: var(--accent); }

/* ──────────── Footer ──────────── */

.footer {
  background: var(--ink-section-bg, var(--ink));
  color: var(--ink-section-fg, var(--bg));
  padding: clamp(60px, 6vw, 100px) 0 32px;
  /* Same accent override as .section--ink so footer column headers don't sit
     forest-on-forest invisible. */
  --accent: var(--accent-on-ink, #d4b896);
  --line: var(--ink-section-line, rgba(245, 243, 238, 0.14));
  --line-strong: var(--ink-section-line-strong, rgba(245, 243, 238, 0.28));
  --muted: var(--ink-section-muted, rgba(245, 243, 238, 0.55));
  --ink-soft: var(--ink-section-soft, rgba(245, 243, 238, 0.78));
}
.footer a { color: var(--ink-section-soft, rgba(245, 243, 238, 0.78)); }
.footer a:hover { color: var(--accent); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-section-line, rgba(245, 243, 238, 0.14));
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-section-fg, var(--bg));
}
.footer__tag {
  margin-top: 14px;
  color: var(--ink-section-muted, rgba(245, 243, 238, 0.65));
  font-size: 0.92rem;
  max-width: 32ch;
  line-height: 1.55;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer__col ul li { color: var(--ink-section-soft, rgba(245, 243, 238, 0.78)); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-section-muted, rgba(245, 243, 238, 0.55));
  flex-wrap: wrap;
  gap: 16px;
}

/* ──────────── Style switcher ──────────── */
.style-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.style-switcher__btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 999px;
  transition: background .15s, color .15s;
  font-weight: 500;
}
.style-switcher__btn:hover { color: var(--ink); }
.style-switcher__btn.is-active {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 900px) {
  .style-switcher { display: none; }
  .nav__menu.is-open .style-switcher {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
  }
}

/* EU funding strip */
.eu-strip {
  background: var(--bg-sunken);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eu-strip .container { display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.eu-flag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eu-flag .stars {
  width: 28px; height: 20px;
  background: #003399;
  position: relative;
  flex-shrink: 0;
}
.eu-flag .stars::before {
  content: "★";
  color: #ffcc00;
  font-size: 12px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ──────────── Map ──────────── */
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map { background: var(--bg-sunken); }
.map svg { display: block; width: 100%; height: 100%; }
.map svg path[fill] { fill: color-mix(in srgb, var(--ink) 10%, transparent); }
.map svg rect[fill] { opacity: 0.5; }
.map__pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translate(-12px, -100%);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 10px 14px;
  min-width: 180px;
  z-index: 2;
}
.map__pin::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 12px;
  width: 1px; height: 36px;
  background: var(--ink);
}
.map__pin::before {
  content: "";
  position: absolute;
  top: calc(100% + 32px);
  left: 8px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 3;
}
.map__pin small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.map__pin b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ──────────── News ──────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-card__img {
  aspect-ratio: 5 / 3;
}
.news-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-card__meta span { color: var(--accent); margin-right: 14px; }
.news-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 500;
  margin: 0;
}

/* ──────────── Misc ──────────── */
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: transparent;
}
.tag--accent { color: var(--accent); border-color: var(--accent); }

/* Direct-edit override container */
