* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f2f4f7;
  color: #222;
}

.wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.top-bar {
  background: #111;
  color: #fff;
  font-size: 14px;
}

.top-flex {
  display: flex;
  justify-content: space-between;
}

.header {
  background: linear-gradient(135deg, #1f4037, #99f2c8);
  color: #fff;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 160px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
  margin-right: 50px;
}

@media (max-width: 768px) {
  .logo {
    height: 70px; /* mniejsze na mobile */
  }
}


.subtitle { opacity: 0.9; }

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.btn {
  background: #111;
  padding: 10px 18px;
  border-radius: 25px;
  transition: 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 25px;
}

.service i {
  font-size: 36px;
  color: #1f4037;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  text-align: center;
}

.steps-grid i {
  font-size: 32px;
  margin-bottom: 10px;
}

.cta {
  background: linear-gradient(135deg, #1f4037, #99f2c8);
  color: #fff;
  text-align: center;
  padding: 40px;
  border-radius: 16px;
}

footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 20px;
}

.contact-step a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.contact-step a:hover {
  transform: translateY(-3px);
}

html {
  scroll-behavior: smooth;
}

.blog-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.blog-card h3 {
  margin-top: 0;
}
.blog-card .btn {
  display: inline-block;
  margin-top: 10px;
  color:white;
  text-decoration: none;
}

.logo-area {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

nav a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: rgb(255, 255, 255);
  color:rgb(0, 0, 0)
}

/* Mobile-first responsive tweaks */
.menu-toggle { display: none; }

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo {
    height: 70px;
    max-width: 160px;
    margin-right: 0;
  }

  .header h1 {
    font-size: 1.4rem;
    margin: 0;
  }

  .subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
  }

  .top-flex {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .wrapper { padding: 12px; }

  nav {
    width: 100%;
    display: none; /* hidden by default on small screens */
    background: transparent;
  }

  nav a {
    display: block;
    padding: 10px 12px;
    margin: 6px 0;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
  }

  .btn {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    text-align: center;
  }

  .card { padding: 20px; }

  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps-grid { grid-template-columns: 1fr; }

  footer { padding: 16px; }

  /* menu toggle button visible on small screens */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
  }

  /* when menu is opened (body.menu-open), show nav as block */
  body.menu-open nav { display: block; }

  /* small tweak for blog cards and content readability */
  .blog-card { padding: 14px; }

  /* reduce icon sizes on small screens */
  .service i { font-size: 28px; }
  .steps-grid i { font-size: 26px; }
}

/* Extra adjustments for very small devices */
@media (max-width: 420px) {
  .logo { height: 56px; }
  .header h1 { font-size: 1.1rem; }
  nav a { padding-left: 8px; padding-right: 8px; }
  .card { padding: 16px; }
}