/* --- ZMIENNE I KONFIGURACJA --- */
:root {
  --primary: #e60000; /* Czerwień KBCS */
  --primary-dark: #cc0000;
  --dark: #1a1a1a;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-border: #eee;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- HEADER & NAVBAR --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

.main-header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.navbar {
  padding: 20px 0;
  transition: var(--transition);
}

.main-header.scrolled .navbar {
  padding: 12px 0;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.main-header.scrolled .logo-img {
  height: 38px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  transition: color 0.3s;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.main-header.scrolled .nav-link {
  color: var(--dark);
  text-shadow: none;
}

.nav-link:hover {
  color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  background-color: var(--dark);
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-tag {
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  background: var(--primary);
  padding: 8px 18px;
  display: inline-block;
  border-radius: 4px;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 25px;
  color: var(--white);
  letter-spacing: -2px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  color: var(--primary);
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn-main,
.btn-ghost {
  padding: 18px 38px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 800;
  transition: var(--transition);
  display: inline-block;
}

.btn-main {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-ghost {
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.btn-main:hover,
.btn-ghost:hover {
  transform: translateY(-5px);
}

.btn-main:hover {
  box-shadow: 0 10px 20px rgba(230, 0, 0, 0.3);
  background: var(--primary-dark);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--dark);
}

/* --- SERVICES SECTION (POPRAWIONE HOVERY) --- */
.services {
  padding: 100px 0;
  background: var(--white);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-intro {
  margin-bottom: 60px;
  padding-left: 25px;
  border-left: 5px solid var(--primary);
}

.pre-title {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 700;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -1.5px;
}

.section-title::after {
  content: '.';
  color: var(--primary);
}

.services-wrapper {
  display: flex;
  gap: 20px;
  min-height: 650px;
}

.service-main-link,
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

/* Główny duży kafelek */
.service-main-link {
  flex: 1;
  background: var(--dark);
  padding: 50px;
  display: flex; /* Dodano, aby justify-content działało */
  flex-direction: column; /* Ustawienie pionowe */
  justify-content: flex-end;
  background-image: url('../img/hero-bg-subtle.png');
  background-size: cover;
  background-position: center;
  position: relative; /* Kluczowe dla pozycjonowania overlay */
  overflow: hidden;
  color: #ffffff; /* Wymuszenie białego koloru dla czytelności */
  text-decoration: none;
}

.service-main-link .item-overlay {
  position: absolute;
  inset: 0;
  /* Zwiększono krycie gradientu (0.9), aby tekst był czytelniejszy */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  z-index: 1;
  transition: var(--transition);
}

.service-main-link:hover .item-overlay {
  /* Zmiana koloru na hover - zachowujemy ciemniejszy dół */
  background: linear-gradient(to top, rgba(230, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.6) 80%);
}

/* Podsiatka usług */
.services-subgrid {
  flex: 1.2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card-link {
  background: var(--gray-light);
  padding: 35px;
  border: 1px solid var(--gray-border);
  justify-content: center;
}

.service-card-link.highlight {
  border: 2px solid var(--primary);
  background: var(--white);
}

.service-card-link:hover {
  transform: translateY(-10px);
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.item-content {
  position: relative;
  z-index: 2;
}

.item-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
  transition: transform 0.3s ease;
}

.service-card-link:hover .item-icon {
  transform: scale(1.2) rotate(5deg);
}

.item-cta-text {
  display: block;
  margin-top: 15px;
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

.service-main-link:hover .item-cta-text {
  color: #fff;
}

/* --- ABOUT SECTION --- */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-wrapper {
  display: flex;
  gap: 80px;
}

.about-text {
  flex: 1.2;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  align-self: center;
}

.stat-card {
  background: var(--gray-light);
  padding: 45px 20px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-card.red-bg {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  font-weight: 600;
}

.feature-icon {
  color: var(--primary);
  font-weight: bold;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: var(--gray-light);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  margin-bottom: 20px;
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateX(10px);
  background: var(--white);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--gray-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  padding: 15px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* DODANIE INFORMACJI O COOKIES I INNYCH LEGALIZACJI */
/* --- COOKIE BANNER STYLE --- */
/* 1. TEN KOD MUSI BYĆ POZA @MEDIA - aby działał na komputerze i telefonie */
.cookie-banner {
  display: block !important;
  position: fixed !important; /* !important wymusza fixed nad innymi stylami */
  bottom: 0 !important;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.98);
  color: white;
  padding: 20px 0;
  z-index: 10001;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.cookie-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px; /* Dodałem odstęp na wypadek długiego tekstu */
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: underline; /* Lepiej widać, że to link */
  font-weight: 600;
}

/* 2. DOPRACOWANIE NA TELEFONY (to zostaw w @media) */
@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column; /* Na telefonie tekst nad przyciskiem */
    text-align: center;
    gap: 15px;
  }
}

/* --- FOOTER --- */
.footer {
  padding: 50px 0;
  background: var(--dark);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin-left: 20px;
}

/* --- MOBILE & BURGER --- */
.burger {
  display: none;
}

@media (max-width: 992px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

  .burger span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: 0.3s;
  }

  .main-header.scrolled .burger span {
    background-color: var(--dark);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: 0.5s ease-in-out;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu.active .nav-link {
    color: var(--dark);
    text-shadow: none;
    font-size: 1.5rem;
  }

  .services-wrapper {
    flex-direction: column;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .services-subgrid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  /* --- RODO CHECKBOX STYLE --- */
  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: #666;
  }
  .checkbox-group input {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
  }
  .checkbox-group a {
    color: var(--primary);
    text-decoration: none;
  }
}
