:root {
  /* Eneglo — ten sam kierunek kolorystyczny, ale inny styl niż strona kancelarii/komornika. */
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #172233;
  --muted: #617083;
  --line: #dce5ee;
  --brand: #163e64;
  --brand-dark: #0d2b49;
  --brand-ink: #09213a;
  --brand-soft: #e8f1f7;
  --accent: #aca549;
  --accent-dark: #7f7a2f;
  --accent-soft: #f3f1dc;
  --gold: #aca549;
  --gold-soft: #f7f3d6;
  --warning: #fff8e8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(13, 43, 73, .10);
  --shadow-soft: 0 14px 38px rgba(13, 43, 73, .07);
  --focus: #1f6feb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(172, 165, 73, .10), transparent 26rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 42%, #fff 100%);
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: .22em; }
a:hover { color: var(--accent-dark); }
a:focus, button:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--brand-dark); color: #fff; padding: 9px 12px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { top: 12px; }

.topbar {
  background: #071d33;
  color: #dbe7f1;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner {
  min-height: 38px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 6px 0;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 650; }
.topbar__contact { display: inline-flex; gap: 12px; flex-wrap: wrap; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 229, 238, .92);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 13px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--brand-dark);
  min-width: 214px;
}
.logo__mark {
  width: 50px;
  height: 50px;
  border-radius: 16px 16px 16px 4px;
  background:
    linear-gradient(140deg, var(--brand-dark), var(--brand) 52%, var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 14px 34px rgba(22, 62, 100, .18);
}
.logo__text { display: block; line-height: 1.05; font-weight: 900; letter-spacing: .05em; font-size: 1.22rem; }
.logo__sub { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: #263548;
  text-decoration: none;
  font-weight: 750;
  font-size: .93rem;
  padding: 8px 9px;
  border-radius: 9px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background .18s ease, transform .18s ease;
  transform: scaleX(.5);
}
.nav a:hover, .nav a[aria-current="page"] { background: transparent; color: var(--brand-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { background: var(--accent); transform: scaleX(1); }
.lang { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; margin-left: 7px; border-left: 1px solid var(--line); }
.lang a { color: var(--muted); padding-inline: 8px; }
.lang a[aria-current="page"] { color: #1d2730; background: var(--accent); border-radius: 999px; box-shadow: 0 8px 18px rgba(172,165,73,.22); }
.lang a[aria-current="page"]::after { display: none; }

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(34px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(9, 33, 58, .96), rgba(13, 43, 73, .92) 52%, rgba(31, 111, 92, .90)),
    radial-gradient(circle at 72% 24%, rgba(172, 165, 73, .22), transparent 22rem);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.4), rgba(0,0,0,1) 38%, rgba(0,0,0,.22));
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 100px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__content {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.hero .eyebrow { color: #e8e0a1; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.14; color: var(--brand-ink); }
.hero h1, .band h2 { color: #fff; }
h1 {
  font-size: clamp(2.35rem, 5.8vw, 5.25rem);
  letter-spacing: -.07em;
  max-width: 12.5ch;
}
h2 { font-size: clamp(1.72rem, 3.4vw, 2.75rem); letter-spacing: -.045em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 14px; }
.lead { color: #dce8f2; font-size: clamp(1.08rem, 2vw, 1.24rem); max-width: 66ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { color: #09213a; background: linear-gradient(135deg, #d8d071, var(--gold)); box-shadow: 0 16px 34px rgba(172, 165, 73, .28); }
.btn--primary:hover { color: #09213a; background: #c7bf58; }
.btn--secondary { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.btn--secondary:hover { color: #fff; background: rgba(255,255,255,.15); }

.hero__card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,.20);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), #e8e0a1, rgba(255,255,255,.3));
}
.hero__card h2 { font-size: 1.2rem; letter-spacing: 0; color: #fff; }
.hero-list { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.hero-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: start;
  color: #edf6fb;
}
.hero-list li::before {
  content: "✓";
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: rgba(158, 227, 207, .16);
  border: 1px solid rgba(158, 227, 207, .32);
  color: #e8e0a1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-top: 1px;
}
.quick-contact { margin-top: 24px; background: rgba(7,29,51,.72); color: #fff; border-radius: 18px; padding: 18px; border: 1px solid rgba(255,255,255,.12); }
.quick-contact p { margin: 0 0 8px; color: #c9d8e4; }
.quick-contact a { color: #fff; font-weight: 850; text-decoration: none; display: inline-block; margin: 2px 0; }

.eyebrow { color: var(--accent-dark); font-weight: 900; letter-spacing: .085em; text-transform: uppercase; font-size: .76rem; margin-bottom: 12px; }
.section { padding: clamp(42px, 6vw, 72px) 0; }
.section--tight { padding-top: clamp(34px, 5vw, 58px); }
.section__head { max-width: 810px; margin-bottom: 26px; }
.section__head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.panel, .service-card, .notice, .process-card, .contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.service-card, .panel, .process-card, .contact-card { padding: clamp(22px, 3vw, 32px); }
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  border-top: 0;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #f3f8fb;
  color: var(--brand-dark);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  margin-bottom: 18px;
  letter-spacing: -.03em;
}
.service-card p, .panel p, .process-card p { color: var(--muted); }
.service-card ul, .panel ul { margin: 13px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-card li, .panel li { position: relative; padding-left: 22px; color: var(--ink); }
.service-card li::before, .panel li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(172,165,73,.16); }

.band {
  background:
    linear-gradient(135deg, var(--brand-ink), var(--brand-dark) 50%, #174d5a),
    radial-gradient(circle at 80% 20%, rgba(217,164,65,.28), transparent 20rem);
  color: #fff;
  border-radius: 32px;
  padding: clamp(30px, 5vw, 52px);
  box-shadow: 0 30px 80px rgba(13, 43, 73, .26);
  overflow: hidden;
  position: relative;
}
.band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 46px solid rgba(255,255,255,.06); }
.band h2 { color: #fff; }
.band p { color: #dbe7f1; max-width: 80ch; }
.band__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px; align-items: start; position: relative; z-index: 1; }
.stat-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stat-list li { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 16px 18px; }
.stat-list strong { display: block; font-size: 1.04rem; color: #fff; }
.stat-list span { color: #dbe7f1; }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.process-card {
  position: relative;
  padding: 28px 22px 24px;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  border-right: 1px solid var(--line);
}
.process-card:last-child { border-right: 0; }
.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  font-size: .82rem;
}

.notice { padding: 18px 20px; background: #fafcff; }
.notice strong { color: var(--brand-dark); }
.warning { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #f0d9a6; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; }
.contact-card { border-radius: 26px; }
.contact-line { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
.contact-line:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.label { color: var(--muted); font-size: .87rem; display: block; margin-bottom: 2px; }
.value { font-weight: 850; color: var(--ink); }
.value a { text-decoration: none; }
.map-placeholder { min-height: 300px; border-radius: 20px; background: linear-gradient(135deg, #e7f0f7, #f6fbf9); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 22px; color: var(--muted); }
.map-placeholder strong { color: var(--brand-dark); display: block; margin-bottom: 6px; }

.footer { background: #071d33; color: #fff; margin-top: 48px; padding: 38px 0; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.1fr .9fr .7fr; gap: 24px; align-items: start; }
.footer p, .footer small { color: #cfdae6; margin: 6px 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer strong { color: #fff; }

.formal { padding: 52px 0; }
.formal .panel { max-width: 920px; }
.formal h1 { max-width: none; font-size: clamp(2rem, 4vw, 3rem); color: var(--brand-ink); }
.formal h2 { font-size: 1.45rem; margin-top: 26px; }

@media (max-width: 960px) {
  .hero__grid, .grid-3, .grid-2, .band__grid, .process, .contact-grid, .footer__grid { grid-template-columns: 1fr; }
  .process-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .process-card:last-child { border-bottom: 0; }
  .header__inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  h1 { max-width: 14ch; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar__inner { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hero { padding-top: 40px; }
  .hero__card, .service-card, .panel, .contact-card { border-radius: 18px; }
  .nav a { padding: 7px 7px; font-size: .9rem; }
  .lang { border-left: 0; padding-left: 0; margin-left: 0; width: 100%; }
  .logo { min-width: 0; }
  .logo__mark { width: 44px; height: 44px; }
}
@media print {
  .topbar, .header, .hero-actions, .footer { display: none; }
  body { background: #fff; color: #000; }
  .hero, .section, .formal { padding: 12px 0; background: #fff; color: #000; }
  .hero__content, .hero__card, .panel, .service-card, .notice, .process-card, .contact-card, .process { box-shadow: none; border-color: #999; background: #fff; color: #000; }
  .hero h1, h1, h2, h3 { color: #000; }
}


/* Stare logo Eneglo */
.logo--old {
  min-width: 0;
  gap: 0;
  max-width: 190px;
}
.logo__image {
  display: block;
  width: min(170px, 28vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.logo__fallback { display: none; }
.logo--fallback .logo__fallback { display: inline-block; }
.logo--fallback {
  max-width: none;
  gap: 13px;
}
.logo--fallback::before {
  content: "E";
  width: 50px;
  height: 50px;
  border-radius: 16px 16px 16px 4px;
  background: linear-gradient(140deg, var(--brand-dark), var(--brand) 52%, var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(22, 62, 100, .18);
}
@media (max-width: 760px) {
  .logo__image { width: min(150px, 55vw); }
}


/* Fix dla długich niemieckich wyrazów, np. Forderungsmanagement */
html[lang="de"] .hero h1,
html[lang="de"] .section-title,
html[lang="de"] .service-card h3,
html[lang="de"] .process-step h3,
html[lang="de"] .feature-card h3,
html[lang="de"] .panel h2,
html[lang="de"] .panel h3,
html[lang="de"] .cta-card h2 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (max-width: 760px) {
  html[lang="de"] .hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.15rem);
    line-height: 1.03;
  }
}
