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

body {
  font-family: Arial, sans-serif;
  background: #f5f5f7;
  color: #111;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ====== HERO ====== */
.hero {
  background-image: url("../img/beton.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: 90px 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55);
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.35rem;
  max-width: 800px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.btn.primary {
  background: #fff;
  color: #0a2a43;
}

.btn.primary:hover {
  background: #e6e6e6;
}

.btn.full {
  width: 100%;
  text-align: center;
}

/* ====== SECTIONS ====== */
.section {
  padding: 60px 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* ====== GRID / CARDS ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease both;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.05rem;
  text-align: center;
}

.card p {
  font-size: 0.98rem;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* ====== WHY US ====== */
.why-grid .card {
  min-height: 180px;
}

/* ====== STEPS (JAK PRACUJEMY) ====== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.step {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  position: relative;
  animation: fadeInUp 0.8s ease both;
}

.step-number {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #ccc;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ====== EPSS TECHNICAL BACKGROUND ====== */
.bg-epss {
  background-image: url("../img/beton-dark.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  color: #fff;
  position: relative;
}

.bg-epss::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.bg-epss .container {
  position: relative;
  z-index: 2;
}

.bg-epss h2 {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.bg-epss p {
  font-size: 1.15rem;
  line-height: 1.75;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ====== TESTIMONIALS ====== */
.testimonials .card {
  position: relative;
}

.testimonial-author {
  margin-top: 10px;
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
}

/* ====== PARTNERS LOGO GRID ====== */
.partners {
  padding: 60px 0;
  text-align: center;
}

.partners h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #111;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  align-items: center;
}

.partner {
  background: #fff;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.partner img {
  width: 100%;
  height: 60px;
  object-fit: contain;
}

.partner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* ====== FORM ====== */
.form {
  display: grid;
  gap: 14px;
  max-width: 500px;
  margin: 0 auto;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form input:focus,
.form textarea:focus {
  border-color: #4ba3ff;
  outline: none;
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: center;
}

/* ====== FOOTER ====== */
.footer {
  text-align: center;
  padding: 20px;
  background: #3a3a3a;
  color: #fff;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* ====== ANIMATIONS ====== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 1s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero-sub {
    font-size: 1.15rem;
  }
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 70px 0;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero-sub {
    font-size: 1.02rem;
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
