.contact-section {
  background: var(--white);
  padding: 8rem 0;
  position: relative;
  background-image: url('../image/automation-automatyzacja-produkcji-bg-map.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.438);
  z-index: 1;
}

.contact-section .content-padding {
  position: relative;
  z-index: 2;
}

.contact-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem;
}

.contact-tagline {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  display: block;
  margin-bottom: 16px;
}

.contact-header h2 {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 24px 0;
  line-height: 1.2;
  letter-spacing: 1px;
}

.contact-quote {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(1, 1, 1, 0.72);
  margin: 0 0 32px 0;
  font-style: italic;
}

.contact-email-hero {
  font-family: var(--font-body);
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.contact-email-hero:hover {
  opacity: 0.7;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-faq {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(1, 1, 1, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-faq h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 32px 0;
  letter-spacing: 0.5px;
}

.faq-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-content h4 {
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.faq-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(1, 1, 1, 0.72);
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-people {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-person {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(1, 1, 1, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-person h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-person a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(1, 1, 1, 0.72);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-person a:hover {
  color: var(--primary);
}

@media (max-width: 1400px) {
  .contact-section {
    padding: 6rem 0;
    background-size: cover;
  }

  .contact-header {
    margin-bottom: 5rem;
  }

  .contact-header h2 {
    font-size: 2.625rem;
  }

  .contact-quote {
    font-size: 1.125rem;
  }

  .contact-container {
    gap: 5rem;
  }

  .contact-email-hero {
    font-size: 2.25rem;
  }
}

@media (max-width: 998px) {
  .contact-section {
    padding: 5rem 0;
    background-size: 150%;
    background-position: center center;
  }

  .contact-header {
    margin-bottom: 4rem;
  }

  .contact-header h2 {
    font-size: 2.25rem;
  }

  .contact-quote {
    font-size: 1.0625rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-faq,
  .contact-main {
    padding: 36px;
  }

  .contact-faq h3,
  .contact-main h3 {
    font-size: 1.5rem;
  }

  .contact-email-hero {
    font-size: 1.75rem;
  }

  .contact-person {
    padding: 28px;
  }
}

@media (max-width: 600px) {
  .contact-section {
    padding: 4rem 0;
    background-size: 200%;
    background-position: center center;
  }

  .contact-section::before {
    background: rgba(255, 255, 255, 0.95);
  }

  .contact-header {
    margin-bottom: 3rem;
  }

  .contact-tagline {
    font-size: 0.75rem;
  }

  .contact-header h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  .contact-quote {
    font-size: 1rem;
  }

  .contact-container {
    gap: 2rem;
  }

  .contact-faq,
  .contact-main {
    padding: 28px;
  }

  .contact-faq h3,
  .contact-main h3 {
    font-size: 1.375rem;
    margin-bottom: 24px;
  }

  .faq-item {
    gap: 16px;
    margin-bottom: 24px;
  }

  .faq-number {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  .faq-content h4 {
    font-size: 1.0625rem;
  }

  .faq-content p {
    font-size: 0.9375rem;
  }

  .contact-email-hero {
    font-size: 1.375rem;
    word-break: break-all;
  }

  .contact-person {
    padding: 24px;
  }

  .contact-person h4 {
    font-size: 1.125rem;
  }

  .contact-person a {
    font-size: 0.9375rem;
  }
}