/* ==========================================================================
   RESET & PODSTAWA TYPOGRAFII
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2d3748;
  background: #f7fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   GÓRNY PASEK NAWIGACJI (NAVBAR)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a202c;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-logo .logo-accent {
  color: #c05621;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #c05621;
  background: #fffaf0;
}

.nav-link.active {
  color: #c05621;
  background: #feebc8;
}

/* Przełącznik języka */
.lang-selector {
  display: flex;
  background: #edf2f7;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #718096;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #1a202c;
}

.lang-btn.active {
  background: #ffffff;
  color: #c05621;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Przycisk hamburger na mobile */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background-color: #2d3748;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   UKŁAD GŁÓWNY (WRAPPER)
   ========================================================================== */
.main-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

/* ==========================================================================
   BANER HERO
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #7b341e 0%, #c05621 100%), url('gfx/des_02.jpg');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 60px 40px;
  color: #ffffff;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(192, 86, 33, 0.2);
}

.hero-content {
  max-width: 700px;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.hero-banner h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-banner p {
  font-size: 1.1rem;
  color: #fed7d7;
}

/* ==========================================================================
   KARTA GŁÓWNEJ TREŚCI
   ========================================================================== */
.content-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
  margin-bottom: 40px;
}

.section-header {
  margin-bottom: 25px;
}

.section-header.center {
  text-align: center;
}

.section-header h2, .section-header h3 {
  font-size: 1.7rem;
  color: #1a202c;
  font-weight: 700;
}

.title-bar {
  width: 50px;
  height: 4px;
  background: #c05621;
  border-radius: 2px;
  margin-top: 8px;
}

.title-bar.center {
  margin: 8px auto 0 auto;
}

.lead-text {
  font-size: 1.05rem;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
  color: #4a5568;
}

.text-link {
  color: #c05621;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Zakładki JS */
.content-block {
  display: none;
}

.content-block.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Galeria */
.gallery-section {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #edf2f7;
}

.gallery-section h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #2d3748;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

/* Kafelki Zespołu */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.team-badge-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.team-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.team-badge-card h4 {
  font-size: 1.1rem;
  color: #2d3748;
  margin-bottom: 8px;
}

/* Lista Oferty */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  background: #f7fafc;
  padding: 16px 20px;
  border-radius: 10px;
  border-left: 4px solid #c05621;
}

.feature-check {
  font-weight: 900;
  color: #c05621;
  margin-right: 14px;
  font-size: 1.1rem;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.contact-box {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  padding: 4px;
  border-radius: 12px;
  text-align: center;
  
  display: flex;
  flex-direction: column;
  justify-content: center; /* oś Y */
  align-items: center;     /* oś X */
  min-height: 120px;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-box strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #2d3748;
}

/* ==========================================================================
   NOWOCZESNE KAFELKI: NALEŻYMY DO (SZEROKIE KARTY + KWADRATOWE LOGO)
   ========================================================================== */
.partners-section {
  margin: 50px 0 30px 0;
}

.partners-grid {
  display: grid;
  /* Elastyczne poszerzone kafelki */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.partner-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

/* KWADRATOWA IKONA KAFELKA */
.partner-logo-box {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-right: 18px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-info h4 {
  font-size: 1rem;
  color: #1a202c;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.partner-info span {
  font-size: 0.82rem;
  color: #718096;
}

/* ==========================================================================
   STOPKA
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 40px 0 20px 0;
  color: #a0aec0;
  font-size: 0.85rem;
  border-top: 1px solid #e2e8f0;
}

.footer-subtext {
  display: block;
  margin-top: 6px;
  color: #cbd5e0;
  text-decoration: none;
}

.footer-subtext:hover {
  color: #718096;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 12px;
  }

  .hero-banner {
    padding: 35px 20px;
  }

  .hero-banner h1 {
    font-size: 1.7rem;
  }

  .content-card {
    padding: 24px;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  /* Hamburger animacja w krzyżyk */
  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}