/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --text: #111827;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-logo span {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-light);
}

/* ===== Sections ===== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 48px;
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 span {
  color: var(--blue);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  flex-shrink: 0;
}

.badge-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 12s linear infinite;
  background: linear-gradient(135deg, var(--blue-light) 0%, #fff 100%);
}

.badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: spin-slow 12s linear infinite reverse;
}

.badge-icon {
  font-size: 3rem;
  color: var(--blue);
  line-height: 1;
}

.badge-text {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== Usługi ===== */
.uslugi {
  background: var(--bg-alt);
}

.uslugi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.usluga-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s;
}

.usluga-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.usluga-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.usluga-icon svg {
  width: 28px;
  height: 28px;
}

.usluga-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.usluga-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== O nas ===== */
.o-nas-inner {
  display: flex;
  gap: 80px;
  align-items: center;
}

.o-nas-text {
  flex: 1;
}

.o-nas-text h2 {
  margin-bottom: 20px;
}

.o-nas-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.o-nas-text .btn {
  margin-top: 12px;
}

.o-nas-stats {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 40px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -1px;
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Kontakt ===== */
.kontakt {
  background: var(--bg-alt);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kontakt-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.kontakt-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.kontakt-icon svg {
  width: 22px;
  height: 22px;
}

.kontakt-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kontakt-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

a.kontakt-value:hover {
  color: var(--blue);
}

.kontakt-map {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.kontakt-map iframe {
  display: block;
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer .nav-logo {
  color: #fff;
  font-size: 1.2rem;
}

.footer .nav-logo span {
  color: #60a5fa;
}

.footer p {
  font-size: 0.9rem;
}

.footer p a {
  color: #60a5fa;
}

.footer p a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 100px;
  }

  .hero-desc {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .o-nas-inner {
    flex-direction: column;
    gap: 48px;
  }

  .o-nas-stats {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  .stat {
    padding: 20px 24px;
    flex: 1;
  }

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

  .kontakt-map {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-cta {
    margin: 12px 24px;
    border-radius: 8px !important;
    text-align: center;
  }

  .section-inner {
    padding: 72px 20px;
  }

  .o-nas-stats {
    flex-direction: column;
  }

  .hero-badge {
    display: none;
  }

  .badge-ring {
    width: 160px;
    height: 160px;
  }
}
