/* ========================================
   RAFKOP - Hydraulika Siłowa
   Style CSS - Optimized for PageSpeed 95+
   ======================================== */

/* CSS Variables */
:root {
  --color-navy: #0A192F;
  --color-blue: #1E3A8A;
  --color-red: #DC2626;
  --color-cyan: #06B6D4;
  --color-gold: #F59E0B;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-white: #FFFFFF;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeSpeed;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-navy);
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-blue);
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-phone:hover {
  color: var(--color-red);
}

.nav-phone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  flex-shrink: 0;
  animation: phone-pulse 2s ease-in-out infinite;
}

.nav-phone__icon svg {
  display: block;
}

.nav-phone__number {
  letter-spacing: 0.03em;
}

@keyframes phone-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  50%  { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* legacy - keep for mobile menu button */
.nav-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--color-gray-100);
}

.mobile-menu .nav-cta-mobile {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 6px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .nav-phone {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-navy);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 25, 47, 0.45), rgba(10, 25, 47, 0.25));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  padding: 2rem 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid var(--color-red);
  border-radius: 9999px;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--color-cyan);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-gray-200);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #B91C1C;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-cyan);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-200);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  padding: 5rem 0;
  background: var(--color-gray-50);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(30, 58, 138, 0.1);
  color: var(--color-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--color-gray-600);
  font-size: 1.0625rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  contain: layout style;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 1.5rem;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--color-blue);
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ========================================
   HDS SECTION
   ======================================== */
.hds-section {
  padding: 4rem 0 5rem;
  background: var(--color-white);
}

/* Duży baner z logotypem FASSI */
.hds-banner {
  width: 100%;
  margin-bottom: 3.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--color-navy);
  line-height: 0;
}

.hds-banner img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.hds-banner:hover img {
  transform: scale(1.02);
}

.hds-banner--sm {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hds-banner--sm img {
  max-height: none;
  height: auto;
}

.hds-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hds-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hds-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hds-image img {
  width: 100%;
  height: auto;
}

.hds-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

.hds-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.hds-content p {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hds-features {
  list-style: none;
  margin-bottom: 2rem;
}

.hds-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--color-gray-700);
}

.hds-features li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(6, 182, 212, 0.2);
  color: var(--color-cyan);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hds-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

.hds-logos img {
  height: 40px;
  width: auto;
  filter: grayscale(0);
  opacity: 0.9;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--color-gray-200);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-gray-200);
}

.cta-info-item svg {
  color: var(--color-cyan);
}

/* ========================================
   PRODUCTS PAGE
   ======================================== */
.page-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--color-gray-200);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.products-section {
  padding: 4rem 0;
}

.product-category {
  margin-bottom: 4rem;
}

.product-category:last-child {
  margin-bottom: 0;
}

.product-category h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-red);
  display: inline-block;
}

.products-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card-image {
  position: relative;
  height: 200px;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-card-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-card-content {
  padding: 1.25rem;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* ========================================
   SERWIS PAGE
   ======================================== */
.process-section {
  padding: 4rem 0;
  background: var(--color-gray-50);
}

.process-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.process-step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.gallery-section {
  padding: 4rem 0;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ========================================
   O NAS PAGE
   ======================================== */
.about-intro {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--color-gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.stats-section {
  padding: 4rem 0;
  background: var(--color-navy);
}

.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 1.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-gray-200);
  font-size: 0.9375rem;
}

.certificates-section {
  padding: 4rem 0;
  background: var(--color-gray-50);
}

.certificates-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .certificates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.certificate-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.certificate-card img {
  max-height: 60px;
  width: auto;
  margin: 0 auto 1rem;
}

.certificate-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.certificate-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

/* Video Section */
.video-section {
  padding: 4rem 0;
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: var(--color-gray-50);
}

.faq-grid {
  display: grid;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ========================================
   KONTAKT PAGE
   ======================================== */
.section {
  padding: 4rem 0;
}

.bg-white {
  background: var(--color-white);
}

.bg-light {
  background: var(--color-gray-50);
}

.text-center {
  text-align: center;
}

.page-header-desc {
  max-width: 700px;
}

.contact-header {
  margin-bottom: 3rem;
}

.contact-company {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* Contact Cards Grid - 4 kolumny */
.contact-cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 1.5rem;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 138, 0.1);
  color: var(--color-blue);
  border-radius: 50%;
  margin-bottom: 1rem;
}

.contact-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.contact-card-content {
  color: var(--color-gray-700);
  font-size: 0.9375rem;
}

.contact-card-link {
  color: var(--color-blue);
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-card-link:hover {
  text-decoration: underline;
}

.contact-card-subcontent {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Contact CTA Buttons */
.contact-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .contact-cta-buttons {
    flex-direction: row;
  }
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-blue);
  border: 2px solid var(--color-blue);
}

.btn-outline:hover {
  background: var(--color-blue);
  color: var(--color-white);
}

/* Map Container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
}

.map-container iframe {
  display: block;
}

/* FAQ Grid 2x2 */
.faq-grid-2x2 {
  display: grid;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .faq-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 1.5rem;
}

.faq-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.faq-card-answer {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* CTA Section Blue */
.cta-section-blue {
  padding: 4rem 0;
  background: var(--color-blue);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-company-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--color-white);
}

.cta-company-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.cta-company-address {
  color: rgba(255, 255, 255, 0.7);
}

/* Legacy contact styles */
.contact-section {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--color-gray-50);
  border-radius: 8px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  color: var(--color-gray-600);
  font-size: 0.9375rem;
}

.contact-item a:hover {
  color: var(--color-blue);
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-navy);
  color: var(--color-gray-200);
  padding: 4rem 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--color-cyan);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.heart {
  display: inline-block;
  color: #FFD700;
  animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.3); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.2); }
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ========================================
   CERTIFICATE BADGES
   ======================================== */
.cert-badge {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 8px;
  width: 80px;
  margin: 0 auto;
}

.cert-badge--blue {
  color: var(--color-blue);
  background: rgba(30, 58, 138, 0.08);
}

.cert-badge--gold {
  color: #B8860B;
  background: rgba(212, 175, 55, 0.12);
}

/* ========================================
   CERTIFICATE GALLERY (LIGHTBOX)
   ======================================== */
.cert-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .cert-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid var(--color-gray-200);
  background: var(--color-gray-50);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.cert-gallery__item:hover {
  border-color: var(--color-blue);
  transform: translateY(-3px);
}

.cert-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.cert-gallery__item:hover img {
  transform: scale(1.05);
}

.cert-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.cert-gallery__item:hover .cert-gallery__overlay {
  opacity: 1;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox__content img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  text-align: center;
}

.lightbox__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox__dots {
  display: flex;
  gap: 0.5rem;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
}

.lightbox__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.lightbox__dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ========================================
   MOBILE STICKY CALL BUTTON
   ======================================== */
.mobile-call-btn {
  display: flex;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 56px;
  height: 56px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.2s, background 0.2s;
}

.mobile-call-btn:hover {
  transform: scale(1.1);
  background: #B91C1C;
}

@media (min-width: 768px) {
  .mobile-call-btn {
    display: none;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .product-card,
  .process-step {
    animation: fadeInUp 0.5s ease-out;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   PDF CERTIFICATES GALLERY
   ======================================== */
.cert-pdf-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cert-pdf-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cert-pdf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue);
}

.cert-pdf-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 138, 0.08);
  color: var(--color-blue);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.cert-pdf-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.cert-pdf-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.cert-pdf-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
}

.cert-pdf-card:hover .cert-pdf-btn {
  background: var(--color-navy);
}

/* ========================================
   TIMELINE - HISTORY SECTION
   ======================================== */
.timeline-section {
  padding: 5rem 0;
  background: var(--color-gray-50);
}

/* ---- MOBILE: single column with left rail ---- */
.timeline {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline__item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  align-items: flex-start;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Mobile vertical line drawn on marker column */
.timeline__marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}

.timeline__marker::after {
  content: '';
  flex: 1;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-blue), var(--color-gold));
  border-radius: 3px;
  margin-top: 6px;
  min-height: 2rem;
}

.timeline__item:last-child .timeline__marker::after {
  display: none;
}

.timeline__year {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--color-white);
  border: 3px solid var(--color-blue);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  z-index: 1;
}

.timeline__item:hover .timeline__year {
  transform: scale(1.1);
  border-color: var(--color-gold);
}

.timeline__item--current .timeline__year {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.timeline__content {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-blue);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1;
}

.timeline__item:hover .timeline__content {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

.timeline__item--current .timeline__content {
  border-left-color: var(--color-gold);
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(212, 175, 55, 0.08) 100%);
}

.timeline__content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.timeline__content p {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.65;
}

/* ---- DESKTOP: symmetric two-column grid ---- */
@media (min-width: 768px) {
  .timeline {
    /* Draw the central vertical line via pseudo on the wrapper */
    position: relative;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, var(--color-blue), var(--color-gold));
    border-radius: 3px;
  }

  /* Each item is a 3-column grid: left-card | marker | right-card */
  .timeline__item {
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    grid-template-rows: auto;
    align-items: start;
    gap: 0;
    padding-bottom: 3rem;
  }

  /* Odd items: card left, marker center, empty right */
  .timeline__item:nth-child(odd) .timeline__marker {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline__item:nth-child(odd) .timeline__content {
    grid-column: 1;
    grid-row: 1;
    margin-right: 2rem;
    border-left: none;
    border-right: 4px solid var(--color-blue);
    text-align: right;
  }

  .timeline__item:nth-child(odd):hover .timeline__content {
    transform: translateX(-6px);
  }

  /* Even items: empty left, marker center, card right */
  .timeline__item:nth-child(even) .timeline__marker {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline__item:nth-child(even) .timeline__content {
    grid-column: 3;
    grid-row: 1;
    margin-left: 2rem;
    border-left: 4px solid var(--color-blue);
    border-right: none;
    text-align: left;
  }

  .timeline__item:nth-child(even):hover .timeline__content {
    transform: translateX(6px);
  }

  /* Marker always centered in its column, no mobile ::after line */
  .timeline__marker {
    width: 64px;
    height: 64px;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding-top: 4px;
  }

  .timeline__marker::after {
    display: none;
  }

  /* Current item gold border */
  .timeline__item--current .timeline__content {
    border-color: var(--color-gold) !important;
  }
}

/* ========================================
   LIGHTBOX GALERII
   ======================================== */
.is-zoomable {
  cursor: zoom-in;
}

.is-zoomable:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

html.lb-open {
  overflow: hidden;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lb.is-open {
  opacity: 1;
}

.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lb__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 5rem;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.lb__stage.is-zoomed {
  cursor: grab;
}

.lb__stage:active {
  cursor: grabbing;
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  will-change: transform;
  -webkit-user-drag: none;
}

.lb__img--in {
  animation: lbIn 0.25s ease;
}

@keyframes lbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb__stage.is-loading::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: lbSpin 0.7s linear infinite;
}

@keyframes lbSpin {
  to { transform: rotate(360deg); }
}

/* Przyciski */
.lb__close,
.lb__nav,
.lb__zbtn {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lb__close:hover,
.lb__nav:hover,
.lb__zbtn:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.lb__close:focus-visible,
.lb__nav:focus-visible,
.lb__zbtn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.lb__close svg,
.lb__nav svg,
.lb__zbtn svg {
  width: 22px;
  height: 22px;
}

.lb__close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
}

.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lb__nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lb__nav--prev { left: 1rem; }
.lb__nav--next { right: 1rem; }

/* Zoom */
.lb__zoom {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb__zbtn {
  position: relative;
  width: 36px;
  height: 36px;
}

.lb__zval {
  min-width: 54px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

/* Pasek opisu */
.lb__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.85), transparent);
  pointer-events: none;
}

.lb__counter {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
}

.lb__caption {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  max-width: 60ch;
}

@media (max-width: 640px) {
  .lb__stage {
    padding: 4rem 0.5rem 4.5rem;
  }

  .lb__nav {
    width: 42px;
    height: 42px;
  }

  .lb__nav--prev { left: 0.4rem; }
  .lb__nav--next { right: 0.4rem; }

  .lb__close {
    width: 40px;
    height: 40px;
    top: 0.6rem;
    right: 0.6rem;
  }

  .lb__zoom {
    top: 0.75rem;
    left: 0.6rem;
  }

  .lb__caption {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb,
  .lb__img,
  .lb__nav,
  .lb__close,
  .lb__zbtn {
    transition: none;
  }

  .lb__img--in {
    animation: none;
  }
}

/* Atrybut hidden musi wygrywac z display:flex powyzej */
.lb[hidden],
.lb__nav[hidden] {
  display: none !important;
}
