/* ===========================
   ZMIENNE
=========================== */
:root {
  --color-primary: #1399FF;
  --color-primary-dark: #0A7ACC;
  --color-bg-dark: #0F172A;
  --color-bg-light: #F3F4F6;
  --color-surface: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #4B5563;
  --text-light: #F9FAFB;
  --radius: 12px;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --container: 1200px;
}

/* ===========================
   GLOBAL
=========================== */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--color-surface);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background: var(--color-bg-light);
}

/* ===========================
   HEADER
=========================== */
.header {
  background: var(--color-bg-dark);
  padding: 20px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.logo-wrapper {
  background: rgba(255, 255, 255, 0.4);
  padding: 10px 20px;
  border-radius: 120px;
  display: inline-block;
}

.logo-wrapper img {
  height: 120px;
  width: auto;
  display: block;
}

.nav a {
  color: var(--text-light);
  margin-left: 20px;
  text-decoration: none;
  font-size: 16px;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* pełny ekran */
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1; /* wideo za treścią */
}

.hero-content {
  position: relative;
  z-index: 2; /* treść nad wideo */
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); /* delikatne przyciemnienie dla czytelności */
  z-index: 1;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  display: inline-block;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: #E0F2FF;
}

/* ===========================
   KARTY / GRID
=========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.gallery-preview {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .arrow {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox .arrow.left { left: 40px; }
.lightbox .arrow.right { right: 40px; }

/* ===========================
   OPINIE
=========================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rating {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 20px;
  color: #f5b301;
}

.rating-score {
  margin-left: 8px;
  font-size: 14px;
  color: #333;
}


/* ===========================
   KONTAKT
=========================== */
.contact-grid {
  display: flex;
  gap: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}

/* ===========================
   STOPKA
=========================== */
.footer {
  background: var(--color-bg-dark);
  color: var(--text-light);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
}

/* ===========================
   RESPONSYWNOŚĆ
=========================== */

/* TABLETY */
@media (max-width: 992px) {

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    flex-direction: column;
  }

  .logo-wrapper img {
    height: 80px;
  }
}

/* TELEFONY */
@media (max-width: 600px) {

  .header-inner {
    flex-direction: column;
    gap: 20px;
  }

  .nav a {
    margin-left: 0;
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    padding: 120px 0 80px;
  }

  .logo-wrapper img {
    height: 60px;
  }
}