:root {
  --font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --color-background: #f9fafb;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-muted: #4b5563;
  --color-accent: #111111;
  --color-accent-strong: #000000;
}

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

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding-top: 6rem;
}

.page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem 6rem;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 9999px;
  margin: 0 auto 0.75rem;
}

.trust-avatars { display: inline-flex; }

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #e5e5e5, #000000);
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.18);
}

.avatar + .avatar { margin-left: -8px; }

.trust-text { font-size: 0.875rem; color: var(--color-muted); }

.hero__title {
  font-size: clamp(2rem, 3.5vw + 1rem, 3rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.hero__quote {
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.85rem);
  text-align: center;
  margin: 0 0 1rem;
  color: var(--color-text);
  font-weight: 500;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 1rem;
}

.hero__actions { display: flex; justify-content: center; }

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  background: #111111;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.35);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.hero__cta:hover { background: #000000; box-shadow: 0 12px 22px rgba(0, 0, 0, 0.45); transform: translateY(-1px); }
.hero__cta:active { transform: translateY(0); }

.hero__note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 1.5rem;
}

.hero__media {
  position: relative;
  background: transparent;
  border-radius: 1.75rem;
  overflow: visible; /* pozwala cieniowi wyjść poza ramkę */
  border: 0;
  isolation: isolate; /* oddziela cień pseudo-elementu od tła */
  margin: 0;
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left center; /* kadrowanie jak w podglądzie */
  border-radius: 1.75rem;
  box-shadow: 0 0 0 1px rgba(229, 231, 235, 0.95);
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.10)) drop-shadow(0 48px 72px rgba(15, 23, 42, 0.28));
}

.hero__img--bordered {
  border: 3px solid rgba(17, 17, 17, 0.8);
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.28);
}

/* eliptyczny cień pod kartą */
.hero__media::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 54px;
  background: radial-gradient(closest-side, rgba(15,23,42,.22) 0%, rgba(15,23,42,0) 70%);
  filter: blur(10px);
  z-index: -1;
}

.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;
}

@media (max-width: 768px) {
  main {
    padding-top: 7rem;
  }

  .page-content {
    padding: 3rem 1.25rem 5rem;
  }

  .hero__img { aspect-ratio: 4 / 3; object-position: left top; }
}

/* Anchor sections offset so sticky header doesn't cover titles */
.section { scroll-margin-top: 96px; }

/* Spacing for content sections */
.section { padding: 4rem 0; }





/* Split (Upadłość / Restrukturyzacja) */
.split { 
  position: relative;
  max-width: 1100px; 
  margin: 0 auto; 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  grid-template-areas: "hdr hdr" "upad restr";
  gap: 24px; 
  align-items: stretch;
}

/* Homepage services layout */
.home-services {
  padding: 0;
}

.services-highlight {
  background: radial-gradient(circle at top, #0b0f18 0%, #050506 55%, #050506 100%);
  color: #e5e7eb;
  padding: clamp(4rem, 6vw, 6rem) 1.5rem clamp(4rem, 7vw, 6.5rem);
}

.services-shell {
  width: min(92%, 1180px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 4vw, 3.5rem);
}

.services-highlight__header {
  max-width: 720px;
  display: grid;
  gap: 1rem;
}

.services-highlight__title {
  margin: 0;
  font-size: clamp(2.2rem, 3vw + 1.25rem, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f8fafc;
}

.services-highlight__lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.services-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.3rem);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.28);
  display: grid;
  gap: 1.4rem;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 30px;
  background: linear-gradient(140deg, rgba(148, 163, 184, 0.34), rgba(37, 99, 235, 0.1));
  opacity: 0.35;
  z-index: -1;
}

.service-card__title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
}

.service-card__desc {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.service-card__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
  color: #d1d5db;
}

.service-card__list li::marker {
  color: #94a3b8;
}

.service-card__actions {
  margin-top: auto;
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: #f8fafc;
  color: #050506;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.32);
}

@media (max-width: 768px) {
  .services-highlight {
    padding: 4.5rem 1.25rem 4.75rem;
  }

  .services-highlight__lead {
    font-size: 1.05rem;
  }
}

/* delikatna poświata przy górnej krawędzi sekcji */
.split::before {
  content: "";
  position: absolute;
  top: -40px; left: -60px; right: -60px; height: 160px;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(15,23,42,0.12) 0%, rgba(15,23,42,0) 70%),
    radial-gradient(45% 60% at 85% 0%, rgba(15,23,42,0.10) 0%, rgba(15,23,42,0) 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.split > .section-header { grid-area: hdr; text-align: center; margin-bottom: .75rem; z-index: 1; }
.split #upadlosc { grid-area: upad; }
.split #restrukturyzacja { grid-area: restr; }

.split__col { 
  background: var(--color-surface); 
  border: 1px solid #e5e7eb; 
  border-radius: 16px; 
  padding: 1.25rem 1.25rem 1.5rem; 
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 16px 32px rgba(15, 23, 42, .10);
  scroll-margin-top: 96px; 
  position: relative; 
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.split__title { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); margin: 0 0 .6rem; font-weight: 800; }
.split__desc { color: var(--color-muted); margin: 0 0 .7rem; font-size: 1.12rem; line-height: 1.65; }
.split__list { margin: 0 0 .85rem; padding-left: 0; color: var(--color-muted); font-size: 1.05rem; line-height: 1.6; list-style: none; }
.split__list li { margin: .35rem 0; position: relative; padding-left: 1.1rem; }
.split__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: #a1a1aa; box-shadow: 0 1px 1px rgba(17,17,17,.12); }
.split__actions { margin-top: auto; }
.split__cta { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:.7rem 1.1rem; border-radius:9999px; border:1px solid #dbe2ea; background:#fff; color:#1f2937; font-weight:700; box-shadow:0 4px 10px rgba(17,17,17,.06); transition:all .12s ease; }
.split__cta:hover { border-color:#111111; color:#111111; box-shadow:0 8px 18px rgba(17,17,17,.18); transform:translateY(-1px); }
.split__cta:active { transform:translateY(0); }
.split__note { text-align: center; color: var(--color-muted); font-size: .95rem; grid-column: 1 / -1; margin-top: .5rem; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; grid-template-areas: "hdr" "upad" "restr"; }
}







/* Lazy-load fade-in for all lazy images */
img[loading="lazy"] {
  opacity: 0;
  transform: translateY(4px);
  filter: blur(6px);
  transition: opacity .4s ease, transform .4s ease, filter .6s ease;
}

img[loading="lazy"].is-loaded {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"] { transition: none; }
}

/* FAQ styling */
.faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 0.75rem 1rem; transition: box-shadow .15s ease, border-color .15s ease; }
.faq details + details { margin-top: 8px; }
.faq summary { list-style: none; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { content: "?"; float: right; color: #4b5563; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 2px solid #111111; outline-offset: 2px; border-radius: 6px; }
.faq p { margin: 0.5rem 0 0; }

/* Steps component (for process section) */
.steps { list-style: none; margin: .5rem 0 0; padding: 0; counter-reset: step; }
.steps__item { position: relative; padding-left: 2.2rem; margin: .6rem 0; color: var(--color-muted); }
.steps__num { position: absolute; left: 0; top: .1rem; width: 1.6rem; height: 1.6rem; border-radius: 9999px; background: #111111; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: 0 6px 14px rgba(17,17,17,.25); }




/* Contact page */
.contact-page {
  gap: 3rem;
}

.contact-hero {
  position: relative;
  max-width: 960px;
  margin: 0 auto 3rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 1.75rem;
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.contact-hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-hero__title {
  margin: 0;
  font-size: clamp(2.1rem, 3vw + 1rem, 2.85rem);
  font-weight: 700;
}

.contact-hero__lead {
  margin: 0;
  max-width: 720px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}

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

.contact-hero__action--primary {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.25);
}

.contact-hero__action--primary:hover {
  box-shadow: 0 22px 36px rgba(17, 17, 17, 0.35);
}

.contact-hero__action--ghost {
  background: transparent;
  color: #111111;
  border-color: rgba(17, 17, 17, 0.28);
}

.contact-hero__action--ghost:hover {
  background: rgba(17, 17, 17, 0.05);
}

.contact-details__wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.contact-details__header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-details__header h2 {
  margin-bottom: 0.75rem;
}

.contact-details__header p {
  margin: 0;
  color: var(--color-muted);
}

.contact-details__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  box-shadow: 0 20px 36px rgba(17, 17, 17, 0.07);
}

.contact-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-card__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-card__value a {
  color: inherit;
  text-decoration: none;
}

.contact-card__value a:hover {
  text-decoration: underline;
}

.contact-card__hint {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.contact-support {
  padding: 0 1.5rem 4rem;
}

.contact-support__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #111111, #1f2937);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 28px 48px rgba(17, 17, 17, 0.24);
}

.contact-support__inner h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 2.6vw + 1rem, 2.5rem);
}

.contact-support__inner p {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-support__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #111111;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-support__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(17, 17, 17, 0.2);
}

@media (max-width: 992px) {
  .contact-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .contact-hero {
    margin-bottom: 2rem;
  }

  .contact-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-details__grid {
    grid-template-columns: 1fr;
  }

  .contact-support {
    padding-bottom: 3rem;
  }
}
