:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #edf2f7;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #dbe3ec;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --accent-soft: #dff4f1;
  --accent-soft-soft:#e7f9f69e;
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.09);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {

  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(65, 65, 65, 0.3)
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
}


.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center; /* centrowanie całej galerii */
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
 
}

.gallery-item img {
  display: block;
  max-width: 100%;
  height: auto; /* klucz: brak stałej wysokości */
}

.gallery-item p {
  text-align: center;
  margin-top: 8px;
}


.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(221, 221, 221, 0.53);
}

.lightbox-caption {
  margin-top: 10px;
  color: #fff;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: bold;
}


.brand {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-sub {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--muted);
  margin-left: 6px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 54px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px 86px;
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
 font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.03;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.lead {
  max-width: 630px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

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

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.document-preview {
  position: relative;
  min-height: 390px;
}

.doc-sheet {
  position: absolute;
  inset: 34px 20px auto auto;
  width: min(84%, 370px);
  min-height: 285px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.doc-sheet-back {
  transform: translate(-42px, 38px) rotate(-7deg);
}

.doc-sheet-middle {
  transform: translate(-18px, 18px) rotate(-2deg);
}

.doc-sheet-front {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px;
}

.doc-sheet-front span {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.doc-sheet-front strong {
  font-size: 2rem;
  line-height: 1.1;
}

.doc-sheet-front small {
  color: var(--muted);
}

.doc-sheet-front::after {
  content: "";
  display: block;
  width: 100%;
  height: 88px;
  margin-top: 12px;
  border-top: 12px solid var(--surface-muted);
  border-bottom: 12px solid var(--surface-muted);
  background: linear-gradient(var(--surface-muted), var(--surface-muted)) 0 50% / 82% 12px no-repeat;
}

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 78px 24px;
}

.section-soft {
  background: var(--accent-soft-soft);
 border-radius: var(--radius);
 padding: 32px;
 box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
 border: 1px solid #e5eaf0;;
}

.section-soft-hard{
	 background: var(--accent-soft);
 border-radius: var(--radius);
 padding: 32px;
 margin-bottom: 20px;
 box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1);
 border: 1px solid var(--line);
}

.section-muted {
  max-width: none;
  background: var(--surface);
}


.section-muted > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.offer p {
  color: var(--muted);
}

.offer-box {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--text);
  color: #ffffff;
}

.offer-box p {
  color: #d1d5db;
}

.offer-box .button {
  margin-top: 8px;
}

.cta {
  max-width: var(--max);
  margin: 0 auto 78px;
  padding: 56px 24px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  text-align: center;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1);border: 1px solid var(--line);
}

.cta p {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.cta .button {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .offer,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .document-preview {
    min-height: 330px;
  }

  .doc-sheet {
    inset: 18px auto auto 50%;
    transform: translateX(-50%);
  }

  .doc-sheet-back {
    transform: translateX(-58%) translateY(34px) rotate(-7deg);
  }

  .doc-sheet-middle {
    transform: translateX(-53%) translateY(16px) rotate(-2deg);
  }

  .doc-sheet-front {
    transform: translateX(-50%);
  }

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 12px;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

  .document-preview {
    min-height: 280px;
  }

  .doc-sheet {
    width: 86%;
    min-height: 235px;
  }

  .doc-sheet-front {
    padding: 24px;
  }

  .doc-sheet-front strong {
    font-size: 1.55rem;
  }

  .cta {
    margin-left: 18px;
    margin-right: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
  .location {
    grid-template-columns: 1fr;
  }
}
