/* bazowe */
html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
}

/* układ */
main {
  flex: 1;
}

.row {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* HEADER - sticky i powiększony */
.header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 999;
}
.header .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  height: 60px;
}
.brand-name {
  font-weight: 700;
  font-size: 24px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 16px;
}
.nav a:hover {
  color: #0b6ef6;
}

/* MAIN */
.main {
  text-align: center;
  padding: 120px 20px;
}
.main h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.main p {
  font-size: 18px;
  color: #6b7280;
}

/* CONTACT TAB - animowany */
.contact-tab {
  position: fixed;
  right: 0;
  top: 40%;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s;
}
.contact-tab a {
  display: flex;
  align-items: center;
  background: #0b6ef6;
  color: #fff;
  padding: 10px;
  border-radius: 12px 0 0 12px;
  text-decoration: none;
  overflow: hidden;
  width: 60px; /* szerokość minimalna */
  transition: width 0.3s;
  box-shadow: 0 6px 10px rgba(0,0,0,0.3);
}
.contact-tab:hover a {
  width: 200px; /* rozwija się przy najechaniu */
}
.contact-icon {
  font-size: 20px;
  margin-right: 10px;
}
.contact-info {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-tab:hover .contact-info {
  opacity: 1;
}
.contact-info p {
  margin: 0;
  font-size: 14px;
}

/* SCROLL TO TOP */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0b6ef6;
  color: #fff;
  font-size: 20px;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  background: #0955c2;
}

/* FOOTER */
.footer {
  background: #1e293b;
  color: #e2e8f0;
  padding: 50px 0 20px;
}
.footer .row {
  display: flex;
  gap: 20px; /* zmniejszony odstęp między kolumnami */
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}
.footer p,
.footer li {
  font-size: 14px;
  margin: 6px 0;
  color: #cbd5e1;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer a:hover {
  color: #0b6ef6;
}
.copy {
  text-align: center;
  font-size: 13px;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .footer .row {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .contact-tab {
    top: auto;
    bottom: 20%;
    right: 0;
  }
  .contact-tab a {
    width: 50px;
  }
  .contact-info {
    display: none;
  }
  .logo {
    height: 50px;
  }
  .brand-name {
    font-size: 20px;
  }
  .nav a {
    font-size: 14px;
  }
}
