/* ============================================
   ZALBUD — style 1:1 z aplikacją React
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: #ffffff;
  --foreground: #2c2f36;
  --surface: #f7f8fa;
  --surface-elevated: #f0f2f5;
  --card: #ffffff;
  --primary: #2563b8;
  --primary-hover: #1f56a3;
  --primary-foreground: #ffffff;
  --muted: #f0f2f5;
  --muted-foreground: #6b7280;
  --accent: #e6eef9;
  --accent-foreground: #1f4a8a;
  --border: #e5e7eb;
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --shadow-card: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-soft: 0 4px 16px -4px rgba(15,23,42,.08);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: .75rem; }

.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.logo-text-main { font-size: 1rem; font-weight: 600; line-height: 1.1; }
.logo-text-sub { font-size: .75rem; color: var(--muted-foreground); font-weight: 500; }

.nav-desktop {
  display: none;
  gap: .25rem;
  align-items: center;
}

.nav-desktop a {
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  transition: color .15s;
}

.nav-desktop a:hover { color: var(--foreground); }
.nav-desktop a.active { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--muted); }

.btn-lg { padding: .75rem 1.5rem; }

.header-cta { display: none; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--foreground);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
}
.nav-mobile a:hover { background: var(--muted); color: var(--foreground); }
.nav-mobile a.active { color: var(--primary); background: var(--muted); }

.nav-mobile .btn { margin-top: .5rem; justify-content: center; padding: .75rem 1.25rem; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-cta { display: block; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ============ HERO ============ */
.hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 6rem 0; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--primary);
}

.hero h1 {
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }

.hero-lead {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.625;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-image {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ============ TAGLINE STRIP ============ */
.tagline-strip {
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 2.5rem 0;
}
.tagline-strip p {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .tagline-strip p { font-size: 1.5rem; } }

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .section-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.section h2 {
  font-size: 1.875rem;
  max-width: 36rem;
}
@media (min-width: 640px) { .section h2 { font-size: 2.25rem; } }

.section-sub {
  margin-top: .75rem;
  color: var(--muted-foreground);
  max-width: 32rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary);
  transition: gap .15s;
}
.link-arrow:hover { gap: .75rem; }

/* ============ CARDS GRID ============ */
.cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .15s;
}
.card:hover { border-color: rgba(37,99,184,.4); }

.card-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.card p {
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ============ REALIZACJE ============ */
.figures-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .figures-grid { grid-template-columns: repeat(3, 1fr); } }

.figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.figure img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}
.figure figcaption { padding: 1rem; }
.figure-tag {
  font-size: .75rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.figure-title {
  margin-top: .25rem;
  font-size: 1rem;
  font-weight: 600;
}

/* ============ DLACZEGO MY ============ */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature .card-icon { background: transparent; }
.feature svg { width: 28px; height: 28px; color: var(--primary); }
.feature h3 { margin-top: 1rem; }

.checklist {
  list-style: none;
  display: grid;
  gap: .5rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .checklist { grid-template-columns: repeat(3, 1fr); } }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
}
.checklist svg {
  width: 16px; height: 16px;
  color: var(--primary);
  flex: none;
  margin-top: 2px;
}

/* ============ CTA ============ */
.cta-strip {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cta-inner h2 { font-size: 1.5rem; }
@media (min-width: 640px) { .cta-inner h2 { font-size: 1.875rem; } }
.cta-inner p { color: var(--muted-foreground); margin-top: .5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============ PAGE HEADER ============ */
.page-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 4rem 0;
}
@media (min-width: 768px) { .page-header { padding: 5rem 0; } }

.page-header h1 {
  font-size: 2.25rem;
  max-width: 48rem;
}
@media (min-width: 640px) { .page-header h1 { font-size: 3rem; } }

.page-header-lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

/* ============ USŁUGI ============ */
.service-list { display: flex; flex-direction: column; gap: 1.5rem; }

.service-article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
}
@media (min-width: 768px) { .service-article { padding: 2rem; } }

.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: auto 1fr 1fr;
    gap: 2.5rem;
  }
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-num { font-size: .75rem; font-weight: 500; color: var(--muted-foreground); }
.service-article h2 {
  font-size: 1.25rem;
  margin: .25rem 0 .75rem;
}
@media (min-width: 640px) { .service-article h2 { font-size: 1.5rem; } }

.service-article .desc { font-size: .875rem; color: var(--muted-foreground); line-height: 1.625; }

.service-scope-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.service-scope {
  list-style: none;
  margin-top: .75rem;
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .service-scope { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .service-scope { grid-template-columns: 1fr; } }

.service-scope li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
}
.service-scope svg {
  width: 16px; height: 16px;
  color: var(--primary);
  flex: none;
  margin-top: 2px;
}

.help-box {
  margin-top: 3rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.help-box h3 { font-size: 1.25rem; margin-bottom: .75rem; }
.help-box p { color: var(--muted-foreground); font-size: .875rem; max-width: 32rem; margin: 0 auto 1rem; }

/* ============ O FIRMIE ============ */
.about-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.about-img {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  object-fit: cover;
  height: 100%;
}

.about-text h2 { font-size: 1.5rem; }
@media (min-width: 640px) { .about-text h2 { font-size: 1.875rem; } }
.about-text p { margin-top: 1rem; color: var(--muted-foreground); line-height: 1.625; }
.about-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.trust-list {
  list-style: none;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: .875rem;
}
.trust-list svg {
  width: 20px; height: 20px;
  color: var(--primary);
  flex: none;
  margin-top: 2px;
}

/* ============ KONTAKT ============ */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 4rem; } }

.contact-side h2 { font-size: 1.25rem; }
.contact-side > p { margin-top: .75rem; font-size: .875rem; color: var(--muted-foreground); }

.contact-cards { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color .15s;
}
a.contact-card:hover { border-color: rgba(37,99,184,.4); }

.contact-card-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-card-label { font-size: .75rem; color: var(--muted-foreground); font-weight: 500; }
.contact-card-value { margin-top: .125rem; font-size: 1rem; font-weight: 600; word-break: break-word; }
.contact-card-extra { margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }
.contact-card-text { margin-top: .125rem; font-size: .875rem; }

.contact-form {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.contact-form h2 { font-size: 1.25rem; }
.contact-form-sub { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

.field-full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 500;
}
.field label .req { color: var(--primary); }

.field input,
.field textarea {
  width: 100%;
  padding: .625rem .75rem;
  font-size: .875rem;
  font-family: inherit;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--foreground);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.field textarea { resize: vertical; min-height: 120px; }
.field textarea::placeholder { color: var(--muted-foreground); }

.form-note {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  color: var(--accent-foreground);
  line-height: 1.5;
}

.form-submit {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
  padding: .875rem 1.5rem;
}
@media (min-width: 640px) { .form-submit { width: auto; } }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-about p {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.footer-meta { margin-top: 1.25rem; font-size: .75rem; color: var(--muted-foreground); }

.footer-col h4 { font-size: .875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.footer-col a { color: var(--muted-foreground); transition: color .15s; }
.footer-col a:hover { color: var(--foreground); }

.footer-contact ul { gap: .75rem; color: var(--muted-foreground); }
.footer-contact li { display: flex; align-items: flex-start; gap: .5rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--primary); margin-top: 2px; flex: none; }

.footer-bar {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  font-size: .75rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ============ ICONS ============ */
.icon { width: 16px; height: 16px; flex: none; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }

/* ============ GALLERY COLLAGE ============ */
.gallery-section { padding-top: 0; }
.gallery-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 1.5rem;
  grid-auto-flow: dense;
}
@media (min-width: 640px) { .gallery-collage { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (min-width: 900px) { .gallery-collage { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) { .gallery-collage { grid-template-columns: repeat(8, 1fr); } }

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--muted);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.78) saturate(0.85) contrast(0.95);
  transition: filter .35s ease, transform .5s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
  transition: opacity .35s ease;
}
.gallery-item:hover img {
  filter: brightness(0.95) saturate(1) contrast(1);
  transform: scale(1.04);
}
.gallery-item:hover::after { opacity: .35; }

/* feature one larger tile occasionally for collage feel */
.gallery-collage .gallery-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 639px) {
  .gallery-collage .gallery-item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
}

.gallery-note {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--muted-foreground);
  text-align: center;
  font-style: italic;
}
