/* ============================================================
   ROIZ — design system v2
   Mobile-first. Logo jako DNA: separator 2px wordmarku jako motif.
   ============================================================ */

:root {
  /* Granat — paleta z briefu */
  --granat-900: #0F1A2E;
  --granat-800: #152038;
  --granat: #1B2A4A;
  --granat-700: #243660;
  --granat-600: #2E4275;
  --granat-500: #4A6190;
  --granat-400: #7A91B8;
  --granat-300: #B8C4D8;

  /* Akcent */
  --cream: #ECE4D0;
  --cream-soft: #F5F0E0;
  --cream-deep: #D4C9A8;

  /* Tło */
  --white: #FFFFFF;
  --paper: #FAFAF7;
  --paper-warm: #F2EFE8;

  /* Ink */
  --ink: #14130E;
  --ink-soft: #3A3A35;
  --muted: #6B6B65;
  --border: #E5E2D8;
  --border-strong: #D4D1C5;

  /* Stopa zwrotu — KEY DIFFERENTIATOR */
  --stopa-szac-bg: #E8E5DC;
  --stopa-szac-fg: #6B6B65;
  --stopa-umowy-bg: #C8E4CB;
  --stopa-umowy-fg: #1F5234;

  /* Spacing — mobile-first, rosną na desktop */
  --gutter: 20px;
  --section-y: 64px;
  --max-w: 1240px;

  /* Typografia */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Garamond, 'Times New Roman', serif;
  --font-body: 'Geist', 'Söhne', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 2px;
}

@media (min-width: 720px) { :root { --gutter: 28px; --section-y: 96px; } }
@media (min-width: 1080px) { :root { --gutter: 32px; --section-y: 128px; } }

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--cream); color: var(--granat); }

/* ============================================================
   Logo DNA motif — pionowa kreska 2px jak separator w RO·IZ
   ============================================================ */
.rule {
  display: inline-block;
  width: 2px;
  background: var(--cream);
  flex-shrink: 0;
}
.rule.dark { background: var(--granat); }
.rule.muted { background: var(--cream-deep); opacity: 0.5; }
.rule-h { height: 1px; width: 32px; background: var(--cream-deep); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--granat);
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(36px, 9vw, 80px); line-height: 1.02; }
h2 { font-size: clamp(28px, 5.8vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.18; }
h4 { font-family: var(--font-body); font-size: 15px; line-height: 1.4; font-weight: 600; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--cream-deep); font-weight: 400; }

p { line-height: 1.6; color: var(--ink-soft); font-size: 15.5px; }
@media (min-width: 720px) { p { font-size: 16px; } }
.lede {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--granat-500);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 2px; height: 14px;
  background: var(--cream-deep);
  flex-shrink: 0;
}
.eyebrow.on-dark { color: var(--cream); }
.eyebrow.on-dark::before { background: var(--cream); opacity: 0.6; }

/* Section number — left-aligned with vertical rule (logo DNA) */
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--cream-deep);
  display: inline-block;
}
.section-num.on-dark { color: rgba(236,228,208,0.7); border-left-color: var(--cream); }

/* ============================================================
   Layout helpers
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section-tight { padding: calc(var(--section-y) * 0.6) 0; position: relative; }

/* ============================================================
   Header / Nav — mobile first
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  min-height: 64px;
}
.nav-logo {
  display: inline-block;
  height: 36px;
  flex-shrink: 0;
}
.nav-logo svg, .nav-logo img { height: 100%; width: auto; }

/* Desktop menu — hidden on mobile */
.nav-menu { display: none; }
.nav-cta { display: none; }

/* Mobile toggle — 44×44 touch target */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--granat);
  margin-left: auto;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 980px) {
  .nav { padding: 20px 0; min-height: 80px; }
  .nav-logo { height: 40px; }
  .nav-menu {
    display: flex;
    gap: 0;
    align-items: center;
    margin-left: auto;
  }
  .nav-menu li {
    display: flex;
    align-items: center;
  }
  .nav-menu li:not(:last-child)::after {
    content: '';
    width: 2px; height: 14px;
    background: var(--cream-deep);
    margin: 0 22px;
    opacity: 0.6;
  }
  .nav-menu a {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--granat);
    font-weight: 500;
    padding: 10px 4px;
    position: relative;
    transition: color 0.15s var(--ease-out);
  }
  .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--granat);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
  }
  .nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--granat);
    color: var(--white);
    padding: 12px 22px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    margin-left: 28px;
  }
  .nav-cta:hover { background: var(--granat-700); transform: translateY(-1px); }
  .nav-toggle { display: none; }
}

/* Mobile drawer — full-screen, charakterystyczny */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--granat);
  z-index: 100;
  flex-direction: column;
  padding: 24px var(--gutter) 32px;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; animation: drawerIn 0.4s var(--ease-out); }
@keyframes drawerIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.mobile-drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 36px;
}
.mobile-drawer-head .nav-logo { height: 36px; }
.mobile-drawer-head .nav-logo img { filter: brightness(0) invert(1); }
.mobile-drawer-close {
  width: 44px; height: 44px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
}
.mobile-drawer-menu { flex-grow: 1; }
.mobile-drawer-menu li { display: flex; align-items: stretch; }
.mobile-drawer-menu li a {
  flex-grow: 1;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: -0.01em;
}
.mobile-drawer-menu li a .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cream);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  width: 32px;
  flex-shrink: 0;
  padding-top: 6px;
}
.mobile-drawer-foot {
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236,228,208,0.5);
  line-height: 2;
}
.mobile-drawer-foot b { color: var(--cream); font-weight: 500; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  min-height: 48px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  white-space: nowrap;
  font-family: var(--font-body);
  cursor: pointer;
  width: 100%;
}
@media (min-width: 540px) { .btn { width: auto; } }
.btn-cream {
  background: var(--cream);
  color: var(--granat);
  border-color: var(--cream);
}
.btn-cream:hover { background: var(--cream-soft); border-color: var(--cream-soft); transform: translateY(-1px); }
.btn-granat {
  background: var(--granat);
  color: var(--white);
  border-color: var(--granat);
}
.btn-granat:hover { background: var(--granat-700); border-color: var(--granat-700); transform: translateY(-1px); }
.btn-ghost {
  color: var(--granat);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--granat); }
.btn-ghost-light {
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.06); border-color: var(--cream); color: var(--cream); }
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HERO — wordmark RO·IZ monumental, centerpiece
   ============================================================ */
.hero {
  background: var(--granat);
  color: var(--white);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(74, 97, 144, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(15, 26, 46, 0.7), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0.85;
}
.hero-eyebrow .rule {
  width: 2px; height: 14px;
  background: var(--cream);
}

/* The monument: wielki wordmark RO·IZ */
.hero-monument {
  width: 100%;
  max-width: 480px;
  padding: 8px 0;
}
.hero-monument svg { width: 100%; height: auto; display: block; }


.hero-claim {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.005em;
  max-width: 18ch;
}
.hero-claim em { font-style: italic; color: var(--cream); }

.hero-lede {
  color: rgba(255,255,255,0.7);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
}
@media (min-width: 540px) {
  .hero-ctas { flex-direction: row; width: auto; max-width: none; justify-content: center; }
}

@media (min-width: 720px) {
  .hero { padding: 96px 0 80px; }
  .hero-inner { gap: 36px; }
  .hero-monument { max-width: 600px; }
  .hero-rule { width: 80px; }
}
@media (min-width: 1080px) {
  .hero { padding: 120px 0 96px; }
  .hero-inner { gap: 44px; }
  .hero-monument { max-width: 720px; }
}

/* Sub-line pod hero claim — wspólnicy + lokalizacja jako sygnatura */
.hero-sig {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 228, 208, 0.5);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-sig .rule {
  width: 16px; height: 1px;
  background: rgba(236, 228, 208, 0.4);
}

/* Staggered fade in */
.fade-in { opacity: 0; transform: translateY(12px); animation: fadeUp 0.7s var(--ease-out) forwards; }
.fade-in.d-1 { animation-delay: 0.05s; }
.fade-in.d-2 { animation-delay: 0.18s; }
.fade-in.d-3 { animation-delay: 0.32s; }
.fade-in.d-4 { animation-delay: 0.48s; }
.fade-in.d-5 { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   METRICS strip — z pionową kreską między
   ============================================================ */
.metrics {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 32px 0;
}
@media (min-width: 720px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); padding: 44px 0; }
}
.metric {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.metric:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%; right: 0;
  width: 2px; height: 36px;
  background: var(--cream-deep);
  transform: translateY(-50%);
  opacity: 0.5;
}
@media (max-width: 719px) {
  .metric:nth-child(2)::after { display: none; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 8px; }
}
.metric-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 0.98;
  color: var(--granat);
  letter-spacing: -0.018em;
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   Section head — eyebrow + h2 + p
   ============================================================ */
.section-head {
  margin-bottom: 40px;
  max-width: 720px;
}
@media (min-width: 720px) { .section-head { margin-bottom: 56px; } }
@media (min-width: 1080px) { .section-head { margin-bottom: 72px; } }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: clamp(15px, 1.15vw, 17px); color: var(--ink-soft); }

/* ============================================================
   TILES — 4 sekcje, lewa kreska 2px jako logo DNA
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
}

.tile {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--granat);
  position: relative;
  transition: background 0.3s var(--ease-out);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cream-deep);
  min-height: 220px;
}
@media (min-width: 720px) {
  .tile { border: none; border-left: 2px solid var(--cream-deep); padding: 44px 36px; min-height: 320px; }
}
@media (min-width: 1080px) {
  .tile { padding: 56px 48px; min-height: 360px; }
}
.tile:hover { background: var(--paper); border-left-color: var(--cream); }

.tile-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--granat-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tile h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--granat);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.tile p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 32ch;
}
.tile-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--granat);
  padding-top: 12px;
}
.tile-arrow span { transition: transform 0.25s var(--ease-out); }
.tile:hover .tile-arrow span { transform: translateX(5px); }

/* ============================================================
   ABOUT — 1 column mobile, 2 column desktop
   ============================================================ */
.about {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 980px) {
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
}

.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 14px; }
.about-text p:last-of-type { margin-bottom: 0; }

.about-sig {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-sig::before {
  content: '';
  width: 2px; height: 28px;
  background: var(--cream-deep);
  flex-shrink: 0;
}
.about-sig-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--granat);
}
.about-sig-text small {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.about-meta {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 720px) { .about-meta { padding: 36px; } }
.about-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.about-meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.about-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-meta dd {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--granat);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.about-meta dd.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ============================================================
   BRANDS — pionowa kreska 2px przed każdą nazwą
   ============================================================ */
.brands {
  background: var(--white);
}
.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .brands-grid { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
}
@media (min-width: 980px) {
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
}

.brand {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s var(--ease-out);
  border: 1px solid var(--border);
}
@media (min-width: 640px) {
  .brand { border: none; padding: 32px 28px; }
}
.brand:hover { background: var(--paper); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--granat);
  font-weight: 500;
  letter-spacing: -0.005em;
  padding-left: 14px;
  border-left: 2px solid var(--cream-deep);
  line-height: 1.15;
}
.brand:hover .brand-name { border-left-color: var(--cream); }
.brand-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex-grow: 1;
}
.brand-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--granat);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.brand-link span { transition: transform 0.25s var(--ease-out); }
.brand:hover .brand-link span { transform: translateX(4px); }

/* ============================================================
   AFFILIATIONS — NHG + MSKiP
   ============================================================ */
.affil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .affil-grid { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
}
.affil-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  border: 1px solid var(--border);
}
@media (min-width: 720px) {
  .affil-card { border: none; padding: 40px 36px; }
}
.affil-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.affil-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--granat);
  line-height: 1.15;
  padding-left: 14px;
  border-left: 2px solid var(--cream-deep);
  margin: 4px 0 12px;
}
.affil-card:hover .affil-name { border-left-color: var(--cream); }
.affil-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}
.affil-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--granat);
  font-weight: 500;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   CTA strip — granat z dużym wordmarkiem ROIZ subtelnie w tle
   ============================================================ */
.cta-strip {
  background: var(--granat);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) { .cta-strip { padding: 96px 0; } }
@media (min-width: 1080px) { .cta-strip { padding: 120px 0; } }
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(74, 97, 144, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-strip-inner {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-strip h2 {
  color: var(--white);
  max-width: 22ch;
  font-weight: 400;
}
.cta-strip h2 em { font-style: italic; color: var(--cream); }
.cta-strip p {
  color: rgba(255,255,255,0.7);
  max-width: 50ch;
  font-size: clamp(15px, 1.2vw, 17px);
}
.cta-strip .hero-ctas { max-width: 360px; }
@media (min-width: 540px) { .cta-strip .hero-ctas { max-width: none; } }

/* ============================================================
   FOOTER — duży wordmark, sekcje z pionowymi kreskami
   ============================================================ */
.site-footer {
  background: var(--granat-900);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) { .site-footer { padding: 80px 0 36px; } }
@media (min-width: 1080px) { .site-footer { padding: 96px 0 40px; } }

.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 90% 0%, rgba(74, 97, 144, 0.16), transparent 65%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  padding-bottom: 48px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-wordmark {
  width: 100%;
  max-width: 280px;
  margin-bottom: 28px;
}
@media (min-width: 720px) { .footer-wordmark { max-width: 360px; } }
@media (min-width: 1080px) { .footer-wordmark { max-width: 440px; } }
.footer-wordmark svg { width: 100%; height: auto; }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 228, 208, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.footer-tagline::before {
  content: '';
  width: 2px; height: 14px;
  background: var(--cream);
  opacity: 0.6;
}
.footer-intro p {
  color: rgba(255,255,255,0.55);
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  position: relative;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.footer-col {
  position: relative;
}
@media (min-width: 720px) {
  .footer-col:not(:first-child) {
    padding-left: 32px;
    border-left: 2px solid rgba(236, 228, 208, 0.16);
  }
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 228, 208, 0.7);
  margin-bottom: 18px;
}
.footer-col ul li { padding: 5px 0; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s var(--ease-out);
  font-size: 14px;
}
.footer-col a:hover { color: var(--cream); }
.footer-col .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
}
.footer-mskip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  letter-spacing: 0.18em;
  font-weight: 500;
}
.footer-mskip::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--cream); opacity: 0.6;
}

/* ============================================================
   PAGE HERO (inner)
   ============================================================ */
.page-hero {
  background: var(--granat);
  color: var(--white);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) { .page-hero { padding: 112px 0 80px; } }
@media (min-width: 1080px) { .page-hero { padding: 140px 0 96px; } }
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 22%, rgba(74, 97, 144, 0.22), transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--cream); margin-bottom: 24px; }
.page-hero .eyebrow::before { background: var(--cream); opacity: 0.6; }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(36px, 6.4vw, 64px);
  margin-bottom: 22px;
  max-width: 18ch;
  font-weight: 400;
  line-height: 1.06;
}
.page-hero h1 em { font-style: italic; color: var(--cream); }
.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: clamp(15px, 1.15vw, 17px);
  max-width: 56ch;
  line-height: 1.6;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb::before {
  content: '';
  width: 2px; height: 12px;
  background: var(--cream); opacity: 0.5;
}
.breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.2s var(--ease-out); }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb .sep { opacity: 0.4; margin: 0 6px; }

/* ============================================================
   AREAS / PROCESS / BUYBACK (zakup gruntów)
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cream-deep);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
@media (min-width: 720px) { .area-card { padding: 36px 28px; } }
.area-card:hover { border-left-color: var(--cream); background: var(--paper); }
.area-card .num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--granat-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.area-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--granat);
  line-height: 1.15;
}
.area-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.area-card .area-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--border);
}
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 32px 24px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid var(--cream-deep);
}
@media (min-width: 880px) {
  .step { border-bottom: none; border-right: 1px solid var(--border); padding: 44px 32px; }
  .step:last-child { border-right: none; }
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  color: var(--cream-deep);
  line-height: 1;
  margin-bottom: 14px;
}
.step h4 { font-family: var(--font-display); font-size: 22px; color: var(--granat); margin-bottom: 8px; font-weight: 500; }
.step p { font-size: 14px; color: var(--ink-soft); }

.buyback-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .buyback-list { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); }
}
.buyback-item {
  background: var(--white);
  padding: 24px 24px 24px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-left: 2px solid var(--cream-deep);
}
@media (min-width: 720px) { .buyback-item { border: none; border-left: 2px solid var(--cream-deep); padding: 28px 28px; } }
.buyback-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--granat-500);
  letter-spacing: 0.1em;
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}
.buyback-item h4 { font-size: 15px; color: var(--granat); margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.buyback-item p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   OFFERS (nieruchomości) — KEY DIFFERENTIATOR
   ============================================================ */
.offers-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
@media (min-width: 720px) {
  .offers-toolbar { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
}
.offers-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.offers-filter {
  padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--granat);
  transition: all 0.2s var(--ease-out);
  min-height: 36px;
}
.offers-filter:hover { background: var(--paper); border-color: var(--granat-300); }
.offers-filter.active { background: var(--granat); color: var(--white); border-color: var(--granat); }
.offers-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.offers-count strong { color: var(--granat); font-weight: 500; }

.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 980px) { .offers-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.offer {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cream-deep);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-left-color 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.offer:hover {
  box-shadow: 0 24px 48px -24px rgba(27, 42, 74, 0.16);
  transform: translateY(-3px);
  border-left-color: var(--cream);
}
.offer-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--granat-700), var(--granat-900));
  position: relative;
  overflow: hidden;
}
.offer-img-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(15, 26, 46, 0.8);
  color: var(--cream);
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 1;
  backdrop-filter: blur(6px);
}
.offer-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.offer-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.offer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  font-weight: 500;
}
.tag-rynek-p { background: var(--cream); color: var(--granat); }
.tag-rynek-w { background: var(--paper); color: var(--granat); border: 1px solid var(--border); }
.tag-status-b { background: var(--granat-300); color: var(--granat); }
.tag-status-g { background: var(--stopa-umowy-bg); color: var(--stopa-umowy-fg); }

.offer h3 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--granat);
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.offer-loc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.offer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.offer-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.offer-meta dd {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--granat);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.offer-meta dd small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stopa-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  margin-top: 6px;
}
.stopa-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.stopa-badge.szac { background: var(--stopa-szac-bg); color: var(--stopa-szac-fg); }
.stopa-badge.umowy { background: var(--stopa-umowy-bg); color: var(--stopa-umowy-fg); }
.offer-cta {
  padding: 14px 22px;
  background: var(--paper);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--granat);
  min-height: 48px;
}
.offer-cta span { transition: transform 0.25s var(--ease-out); }
.offer:hover .offer-cta span { transform: translateX(4px); }

.stopa-callout {
  background: var(--paper);
  border-left: 2px solid var(--cream);
  padding: 22px 24px;
  margin-bottom: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 720px) { .stopa-callout { padding: 28px 32px; gap: 28px; } }
.stopa-callout-body h4 {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--granat);
  margin-bottom: 6px;
  font-weight: 600;
}
.stopa-callout-body p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}
.stopa-callout-body .badges {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   INWESTYCJE
   ============================================================ */
.invest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 880px) { .invest-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.invest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cream-deep);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--ease-out), border-left-color 0.3s var(--ease-out);
}
.invest-card:hover { box-shadow: 0 24px 48px -24px rgba(27, 42, 74, 0.16); border-left-color: var(--cream); }
.invest-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--granat-700), var(--granat-900));
  position: relative;
  overflow: hidden;
}
.invest-placeholder {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(236, 228, 208, 0.45);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  z-index: 1;
}
.invest-body { padding: 28px; }
@media (min-width: 720px) { .invest-body { padding: 32px; } }
.invest-body .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--cream);
  color: var(--granat);
  font-weight: 500;
  margin-bottom: 16px;
  border-radius: 2px;
}
.invest-body h3 { font-family: var(--font-display); font-size: 26px; color: var(--granat); margin-bottom: 8px; line-height: 1.15; }
.invest-body .loc { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.06em; }
.invest-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--granat);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px; /* 16px no zoom on iOS */
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  min-height: 48px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--granat);
  background: var(--paper);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 540px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-consent {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.field-consent input { margin-top: 4px; width: 18px; height: 18px; min-height: 18px; }
.field-consent a { color: var(--granat); text-decoration: underline; }

.contact-meta {
  background: var(--paper);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 2px solid var(--cream);
}
@media (min-width: 720px) { .contact-meta { padding: 36px; } }
.contact-meta-block dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-meta-block dd {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--granat);
  line-height: 1.25;
}
.contact-meta-block dd.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.contact-meta-block dd small {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  display: block;
  margin-top: 4px;
}

.contact-map {
  margin-top: 32px;
  aspect-ratio: 16/9;
  background: var(--granat-800);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-map .map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 22px;
  text-align: center;
  line-height: 1.3;
}
.contact-map .map-pin small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.gap-md { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 540px) { .gap-md { flex-direction: row; gap: 14px; flex-wrap: wrap; } }

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

@media print {
  .site-header, .site-footer, .cta-strip, .nav-toggle, .mobile-drawer { display: none; }
  body { background: white; color: black; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
