@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1a1a2e;
  --blue-light: #16213e;
  --accent: #ff6b35;
  --accent-dark: #e85d26;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--gray-800); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--blue); letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.85rem; font-weight: 500; color: var(--gray-600); transition: color 0.2s; }
.nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--white) !important; padding: 10px 24px;
  border-radius: var(--radius); font-weight: 600; transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-dark); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue); margin: 5px 0; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1582735689369-4fe89db7114c?w=1920&h=1080&fit=crop') center/cover;
  opacity: 0.15;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-block; background: rgba(14,165,233,0.2); color: var(--accent);
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 24px; border: 1px solid rgba(14,165,233,0.3);
}
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.03em; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 480px; margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: var(--radius); font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.hero-image { position: relative; }
.hero-image img { border-radius: 12px; box-shadow: var(--shadow-lg); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-number { font-size: 2rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--blue); color: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
  display: inline-block; background: rgba(14,165,233,0.1); color: var(--accent);
  padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.section-dark .section-badge { background: rgba(14,165,233,0.2); }
.section-header h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; color: var(--gray-600); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== O FIRMIE ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-content h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.about-content p { color: var(--gray-600); margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.about-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; font-weight: 500; color: var(--gray-800);
}
.about-feature .icon {
  width: 32px; height: 32px; background: rgba(14,165,233,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  font-size: 1rem; flex-shrink: 0;
}

/* ===== USŁUGI ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: 12px; padding: 36px 28px;
  border: 1px solid var(--gray-200); transition: all 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.service-icon {
  width: 56px; height: 56px; background: rgba(14,165,233,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ===== BRANŻE ===== */
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.industry-card {
  text-align: center; padding: 32px 20px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.industry-card:hover { background: rgba(14,165,233,0.1); border-color: var(--accent); transform: translateY(-4px); }
.industry-icon { font-size: 2.5rem; margin-bottom: 16px; }
.industry-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.industry-card p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ===== KORZYŚCI ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit-card { text-align: center; padding: 40px 24px; }
.benefit-number {
  width: 48px; height: 48px; background: var(--accent); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; margin: 0 auto 20px;
}
.benefit-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.benefit-card p { font-size: 0.9rem; color: var(--gray-600); }

/* ===== GALERIA ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ===== FORMULARZ ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 48px; height: 48px; background: rgba(14,165,233,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.2rem; flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; color: var(--gray-600); }
.contact-form {
  background: var(--white); border-radius: 12px; padding: 40px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; transition: border-color 0.2s; background: var(--gray-50);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 14px; background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-submit:hover { background: var(--accent-dark); }

/* ===== MAPA ===== */
.map-section { padding: 0; }
.map-section iframe { width: 100%; height: 400px; border: none; display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--blue); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.footer p, .footer a { font-size: 0.85rem; line-height: 1.8; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.8rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: white; font-size: 2rem; cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-image { display: none; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); }
  .nav.active { display: flex; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .services-grid, .benefits-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
