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

:root {
  /* Color Palette - Adjusted to match S&S Navy and Grey logo colors */
  --primary-dark: #0F1626;
  --primary-navy: #2B3D6B;
  --primary-slate: #546380;
  --accent-emerald: #10B981;
  --accent-emerald-light: #D1FAE5;
  --accent-blue: #41578A;
  --accent-blue-light: #E6EBF5;
  --accent-danger: #EF4444;
  --accent-danger-light: #FEE2E2;
  
  --bg-light: #F1F3F7;
  --bg-white: #FFFFFF;
  --text-dark: #1D263B;
  --text-medium: #3E4B66;
  --text-light: #6A7790;
  --text-white: #FFFFFF;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(11, 19, 43, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  
  /* Layout & Design */
  --font-headings: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.2);
  --shadow-glow-danger: 0 0 25px rgba(239, 68, 68, 0.35);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-medium);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

.section {
  padding: 6.5rem 0;
  position: relative;
}

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

.section-dark {
  background-color: var(--primary-dark);
  color: var(--text-white);
}

.section-dark h2 {
  color: var(--text-white);
}

.section-dark p {
  color: #94A3B8;
}

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

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  border-radius: var(--radius-full);
}

.section-header p {
  font-size: 1.15rem;
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563EB);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), var(--shadow-glow);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-dark);
  border-color: #E2E8F0;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), var(--shadow-glow-emerald);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-danger), #DC2626);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  animation: pulse-danger 2s infinite;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5), var(--shadow-glow-danger);
}

@keyframes pulse-danger {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Background Dotted Matrix Pattern & Glowing Blobs - Increased opacity for visual visibility */
.section-light, .section:not(.section-dark):not(.hero) {
  position: relative;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(43, 61, 107, 0.12) 1.5px, transparent 0);
  background-size: 28px 28px;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
}

.bg-blob-emerald {
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
  top: -120px;
  left: -120px;
}

.bg-blob-blue {
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  bottom: -180px;
  right: -120px;
}

.bg-blob-indigo {
  background: radial-gradient(circle, #6366F1 0%, transparent 70%);
  top: 15%;
  right: -150px;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 115px;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.header-scrolled {
  height: 65px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-top {
  height: 75px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  width: 100%;
  transition: var(--transition-smooth);
}

.header-scrolled .header-top {
  display: none;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.header-phone i {
  color: var(--accent-emerald);
  font-size: 1.1rem;
}

.header-bottom {
  height: 40px;
  display: flex;
  align-items: center;
  width: 100%;
  transition: var(--transition-smooth);
}

.header-scrolled .header-bottom {
  height: 65px;
}

.header-bottom-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transition: var(--transition-smooth);
}

.header-scrolled .header-bottom-container {
  justify-content: center;
}

.logo-scrolled-only {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  animation: fadeInMsg 0.3s ease forwards;
}

.header-scrolled .logo-scrolled-only {
  display: flex;
}

.header-logo-img-small {
  max-height: 38px;
  width: auto;
  border-radius: var(--radius-sm);
  background-color: var(--bg-white);
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.logo-title-small {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text-dark);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-actions {
  display: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-medium);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  padding: 140px 0 80px 0;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 45%),
              radial-gradient(circle at 15% 75%, rgba(16, 185, 129, 0.08), transparent 45%),
              var(--primary-dark);
  color: var(--text-white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #E2E8F0;
  backdrop-filter: blur(4px);
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-emerald 2s infinite;
}

@keyframes pulse-emerald {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-white) 60%, #CBD5E1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: #94A3B8;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 2.5vw, 2rem);
}

.hero-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
  position: relative;
  z-index: 5;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: clamp(1.15rem, 3.8vw, 2.25rem);
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-headings);
  line-height: 1;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(0.72rem, 1.8vw, 0.85rem);
  color: #64748B;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-box {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.2), transparent 60%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.visual-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visual-tag {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
}

.visual-center {
  margin: auto 0;
  text-align: center;
}

.visual-main-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-headings);
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--accent-emerald);
}

.visual-main-label {
  font-size: 0.95rem;
  color: #94A3B8;
  font-weight: 500;
}

/* Pogotowie Księgowe Section */
.pogotowie-box {
  background: linear-gradient(135deg, #1E1B1B, #2A1A1A);
  border: 1px solid #7F1D1D;
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow-danger);
}

.pogotowie-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent-danger);
}

.pogotowie-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.pogotowie-content h3 {
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pogotowie-content p {
  color: #FCA5A5;
  margin-bottom: 2rem;
}

.pogotowie-emergency-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-headings);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pogotowie-emergency-num span {
  color: var(--accent-danger);
}

.pogogotowie-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pogotowie-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pogotowie-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.15);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.pogotowie-card:hover {
  background-color: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-3px);
}

.pogotowie-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.pogotowie-card h4 {
  font-size: 1.15rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.pogotowie-card p {
  font-size: 0.9rem;
  color: #FDA4AF;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Compliance / Legal Competences */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.compliance-card {
  background-color: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.compliance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.compliance-card-icon {
  width: 54px;
  height: 54px;
  background-color: var(--accent-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.compliance-card:nth-child(2) .compliance-card-icon {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.compliance-card:nth-child(3) .compliance-card-icon {
  background-color: var(--accent-danger-light);
  color: var(--accent-danger);
}

.compliance-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.compliance-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.compliance-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.compliance-link:hover {
  gap: 0.5rem;
}

.compliance-card:nth-child(2) .compliance-link {
  color: var(--accent-emerald);
}

.compliance-card:nth-child(3) .compliance-link {
  color: var(--accent-danger);
}

/* Services (Oferta) Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.service-card {
  background-color: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-features {
  border-top: 1px solid #F1F5F9;
  padding-top: 1.5rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}

.service-feature-item i {
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

/* Software Integration Ribbon */
.software-ribbon {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.software-text {
  max-width: 600px;
}

.software-text h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.software-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.software-logo-box {
  background-color: var(--bg-white);
  border: 1px solid #E2E8F0;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.software-logo {
  max-height: 48px;
  object-fit: contain;
}

/* Interactive Calculator / Estimator Widget */
.calc-widget {
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-top: 5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.calc-title h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.calc-title p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-weight: 700;
  color: var(--text-dark);
}

.calc-val {
  font-weight: 800;
  color: var(--accent-blue);
  font-size: 1.15rem;
  background-color: var(--accent-blue-light);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: #E2E8F0;
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #2563EB);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  transition: var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.5);
}

.calc-select-group {
  display: flex;
  gap: 1rem;
}

.calc-btn-radio {
  flex: 1;
  padding: 1rem;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--bg-white);
}

.calc-btn-radio.active {
  border-color: var(--accent-blue);
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
}

.calc-results-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.calc-results-box::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  top: -50px;
  right: -50px;
}

.calc-est-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94A3B8;
  margin-bottom: 0.5rem;
}

.calc-price-display {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-headings);
  color: var(--accent-emerald);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.calc-price-display span {
  font-size: 1.25rem;
  color: #94A3B8;
  font-weight: 500;
}

.calc-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.calc-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-bullet-item i {
  color: var(--accent-emerald);
}

/* About Us (O firmie) Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  gap: 1rem;
}

.about-feature-icon {
  font-size: 1.5rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.about-feature h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.about-feature p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.about-certificate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cert-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E2E8F0;
  cursor: zoom-in;
  transition: var(--transition-smooth);
}

.cert-wrapper::before {
  content: '🔍 Kliknij, aby powiększyć';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition-fast);
  z-index: 2;
}

.cert-wrapper:hover::before {
  opacity: 1;
}

.cert-wrapper:hover {
  transform: scale(1.02);
}

.cert-img {
  width: 100%;
  max-width: 320px;
  display: block;
  height: auto;
}

.cert-caption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent-danger);
}

/* SEO AI Assistant & Search Widget */
.ai-section-box {
  background: radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.08), transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(16, 185, 129, 0.05), transparent 40%),
              var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-md);
}

.ai-search-bar-wrapper {
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
  position: relative;
}

.ai-search-input-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-full);
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  transition: var(--transition-smooth);
}

.ai-search-input-group:focus-within {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
  background-color: var(--bg-white);
}

.ai-search-icon {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.ai-search-input {
  border: none;
  background: none;
  outline: none;
  font-size: 1.1rem;
  color: var(--text-dark);
  width: 100%;
  padding-right: 1rem;
}

.ai-search-clear {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  margin-right: 0.5rem;
  display: none;
  transition: var(--transition-fast);
}

.ai-search-clear:hover {
  color: var(--accent-danger);
}

.search-results-feedback {
  position: absolute;
  bottom: -28px;
  left: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
}

/* Chatbot Interface */
.ai-chat-interface {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.ai-questions-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.ai-question-btn {
  background-color: var(--bg-light);
  border: 1px solid #E2E8F0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ai-question-btn:hover {
  background-color: var(--bg-white);
  border-color: var(--accent-blue);
  transform: translateX(4px);
  color: var(--accent-blue);
  box-shadow: var(--shadow-sm);
}

.ai-question-btn i {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.ai-question-btn:hover i {
  color: var(--accent-blue);
  transform: translateX(2px);
}

.ai-chat-window {
  background-color: var(--primary-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 480px;
}

.ai-chat-header {
  background-color: var(--primary-navy);
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-status-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.ai-chat-header-title {
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.05rem;
}

.ai-chat-body {
  flex-grow: 1;
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

/* Chat Messages */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: fadeInMsg 0.4s ease forwards;
}

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

.chat-msg-user {
  align-self: flex-end;
}

.chat-msg-ai {
  align-self: flex-start;
}

.chat-msg-bubble {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-msg-user .chat-msg-bubble {
  background: linear-gradient(135deg, var(--accent-blue), #2563EB);
  color: var(--text-white);
  border-bottom-right-radius: 4px;
}

.chat-msg-ai .chat-msg-bubble {
  background-color: var(--primary-navy);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
}

.chat-msg-meta {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 0.35rem;
  font-weight: 500;
}

.chat-msg-user .chat-msg-meta {
  text-align: right;
}

.chat-msg-ai-thinking {
  align-self: flex-start;
  display: none;
}

.thinking-bubble {
  background-color: var(--primary-navy);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.thinking-dot {
  width: 8px;
  height: 8px;
  background-color: #94A3B8;
  border-radius: 50%;
  animation: thinkingBounce 1.4s infinite ease-in-out both;
}

.thinking-dot:nth-child(1) { animation-delay: -0.32s; }
.thinking-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinkingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

.ai-chat-input-area {
  padding: 1.25rem;
  background-color: var(--primary-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-input-form {
  display: flex;
  gap: 0.75rem;
}

.ai-chat-input {
  flex-grow: 1;
  background-color: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: var(--text-white);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.ai-chat-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.ai-chat-send {
  background-color: var(--accent-blue);
  border: none;
  color: var(--text-white);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ai-chat-send:hover {
  background-color: #2563EB;
  transform: scale(1.05);
}

/* Highlight matching search styles */
mark.search-highlight {
  background-color: rgba(253, 224, 71, 0.45);
  color: var(--text-dark);
  border-bottom: 2px solid #EAB308;
  padding: 0 0.15rem;
  border-radius: 2px;
}

/* Pricing (Cennik) Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background-color: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-popular {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.pricing-card-popular::before {
  content: 'NAJCZĘŚCIEJ WYBIERANY';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-blue), #2563EB);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.pricing-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.pricing-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.pricing-card-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  font-family: var(--font-headings);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 1.5rem;
}

.pricing-card-price span {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.pricing-card-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.pricing-feature-item i {
  font-size: 0.9rem;
}

.pricing-feature-item.active i {
  color: var(--accent-emerald);
}

.pricing-feature-item.inactive {
  color: var(--text-light);
  text-decoration: line-through;
  opacity: 0.6;
}

.pricing-feature-item.inactive i {
  color: var(--text-light);
}

.pricing-card-popular .btn {
  background: linear-gradient(135deg, var(--accent-blue), #2563EB);
  color: var(--text-white);
  border: none;
}

/* Contact & Map Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 52px;
  height: 52px;
  background-color: var(--accent-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.contact-detail-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
  font-weight: 500;
}

.contact-map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #E2E8F0;
  height: 300px;
}

.contact-map-frame {
  width: 100%;
  height: 100%;
  border: none;
}

/* Form Styling */
.contact-form-box {
  background-color: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-title h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-title p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input {
  background-color: var(--bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent-blue);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.form-checkbox {
  margin-top: 0.25rem;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-light);
}

.form-checkbox-label a {
  color: var(--accent-blue);
  font-weight: 600;
}

.form-checkbox-label a:hover {
  text-decoration: underline;
}

.form-submit-btn {
  width: 100%;
}

.form-feedback-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
  animation: fadeInMsg 0.4s ease forwards;
}

.form-feedback-success {
  background-color: var(--accent-emerald-light);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback-error {
  background-color: var(--accent-danger-light);
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer Styles */
.footer {
  background-color: var(--primary-dark);
  color: var(--text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand .logo-title {
  color: var(--text-white);
}

.footer-brand .logo-subtitle {
  color: #94A3B8;
}

.footer-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  position: relative;
  display: inline-block;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-emerald);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-size: 0.9rem;
  color: #94A3B8;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-link:hover {
  color: var(--accent-emerald);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.6;
}

.footer-author-link {
  color: var(--accent-emerald);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-author-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-legal-link:hover {
  color: #94A3B8;
}

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

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Header Logo Monogram Style - Styled to replicate split-color S&S brand logo */
.ss-logo-box {
  position: relative;
  width: 90px;
  height: 45px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}

.ss-logo-box-small {
  width: 76px;
  height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.ss-logo-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #2F4270; /* Legacy logo navy */
  overflow: hidden;
}

.ss-logo-left::after {
  content: 'S&S';
  position: absolute;
  top: 50%;
  left: 45px; /* Box width / 2 */
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -1.5px;
}

.ss-logo-box-small .ss-logo-left::after {
  left: 38px; /* Small box width / 2 */
  font-size: 1.7rem;
  letter-spacing: -1px;
}

.ss-logo-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: #8E95A5; /* Legacy logo grey */
  overflow: hidden;
}

.ss-logo-right::after {
  content: 'S&S';
  position: absolute;
  top: 50%;
  right: 45px; /* Box width / 2 */
  transform: translate(50%, -50%);
  color: #2F4270;
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -1.5px;
}

.ss-logo-box-small .ss-logo-right::after {
  right: 38px; /* Small box width / 2 */
  font-size: 1.7rem;
  letter-spacing: -1px;
}

/* Hero Dynamic Business Engine Styles */
.hero-engine-container {
  position: relative;
  width: 600px;
  height: 480px;
  margin: 0 auto;
  margin-top: 10px;
}

/* Background Watermark Logo */
.engine-watermark-logo {
  position: absolute;
  width: 420px;
  height: 210px;
  top: 135px;
  left: 90px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
}

.engine-background-visualization {
  width: 100%;
  height: 100%;
  display: block;
}

.pulse-point {
  animation: viz-pulse 2.5s infinite ease-out;
  transform-origin: center;
}

@keyframes viz-pulse {
  0% { r: 4px; opacity: 0.8; }
  100% { r: 24px; opacity: 0; }
}

/* Background gears */
.engine-gear {
  position: absolute;
  color: var(--primary-navy);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.gear-large {
  font-size: 320px;
  top: calc(50% - 160px);
  left: calc(50% - 160px);
  animation: rotate-gear 25s linear infinite;
}

.gear-small {
  font-size: 180px;
  top: 15%;
  right: 10%;
  animation: rotate-gear 15s linear infinite reverse;
}

@keyframes rotate-gear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Central Hub */
.engine-hub {
  position: absolute;
  width: 130px;
  height: 130px;
  top: 175px;
  left: 235px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-dark));
  border: 4px solid var(--accent-blue);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), inset 0 0 15px rgba(59, 130, 246, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.engine-hub:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.6), inset 0 0 20px rgba(16, 185, 129, 0.6);
  border-color: var(--accent-emerald);
}

.hub-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-white);
  text-align: center;
}

.hub-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 0.15rem;
}

.hub-monogram-svg {
  width: 100%;
  height: 100%;
  animation: pulse-monogram 2.5s infinite ease-in-out;
  transform-origin: center;
}

.hub-monogram-ring {
  transform-origin: center;
  animation: rotate-monogram-ring 25s linear infinite;
  transition: stroke var(--transition-smooth), opacity var(--transition-smooth);
}

.hub-monogram-text {
  font-family: var(--font-headings);
  font-weight: 900;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: fill var(--transition-smooth), filter var(--transition-smooth);
}

/* Hover effects */
.engine-hub:hover .hub-monogram-ring {
  stroke: var(--text-white);
  animation-duration: 8s; /* rotates faster on hover for dynamic acceleration effect! */
}

.engine-hub:hover .hub-monogram-text {
  fill: var(--text-white);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

@keyframes pulse-monogram {
  0%, 100% { transform: scale(0.95); opacity: 0.95; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3)); }
  50% { transform: scale(1.06); opacity: 1; filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.6)); }
}

@keyframes rotate-monogram-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hub-content span {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hub-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes bounce-hub {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Nodes */
.engine-node {
  position: absolute;
  width: 220px;
  padding: 1rem;
  background-color: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  z-index: 5;
  transition: var(--transition-smooth);
}

.engine-node:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.node-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.engine-node:hover .node-icon {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
  transform: scale(1.1);
}

.node-text {
  display: flex;
  flex-direction: column;
}

.node-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  letter-spacing: 0.5px;
  margin-bottom: 0.15rem;
}

.node-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text-dark);
}

.node-text p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.3;
}

/* Positioning Nodes in 2x2 */
.node-1 { top: 20px; left: 10px; }
.node-2 { top: 20px; right: 10px; }
.node-3 { bottom: 20px; left: 10px; }
.node-4 { bottom: 20px; right: 10px; }

/* Connector lines with moving dots */
.connector-line {
  position: absolute;
  background-color: rgba(65, 87, 138, 0.12);
  z-index: 1;
  pointer-events: none;
}

/* Line 1: Top-Left Center to Hub Center (120px, 60px) to (300px, 240px) */
.line-1 {
  top: 60px;
  left: 120px;
  width: 254px;
  height: 2px;
  transform: rotate(45deg);
  transform-origin: top left;
}

/* Line 2: Hub Center to Top-Right Center (300px, 240px) to (480px, 60px) */
.line-2 {
  top: 240px;
  left: 300px;
  width: 254px;
  height: 2px;
  transform: rotate(-45deg);
  transform-origin: top left;
}

/* Line 3: Bottom-Left Center to Hub Center (120px, 420px) to (300px, 240px) */
.line-3 {
  top: 420px;
  left: 120px;
  width: 254px;
  height: 2px;
  transform: rotate(-45deg);
  transform-origin: top left;
}

/* Line 4: Hub Center to Bottom-Right Center (300px, 240px) to (480px, 420px) */
.line-4 {
  top: 240px;
  left: 300px;
  width: 254px;
  height: 2px;
  transform: rotate(45deg);
  transform-origin: top left;
}

/* Moving flow dots */
.connector-line::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.line-1::after { animation: flow-to-center 3s infinite linear; }
.line-2::after { animation: flow-from-edge 3s infinite linear; }
.line-3::after { animation: flow-to-center 3s infinite linear; }
.line-4::after { animation: flow-from-edge 3s infinite linear; }

@keyframes flow-to-center {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes flow-from-edge {
  0% { left: 100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}

/* Interactive Page Movement Animations */
.service-card {
  transition: var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.2);
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  transition: var(--transition-smooth);
}
.compliance-card {
  transition: var(--transition-smooth);
}
.compliance-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.3);
}
.compliance-card:hover .compliance-card-icon i {
  transform: scale(1.15) rotate(-5deg);
  color: var(--accent-emerald);
  transition: var(--transition-smooth);
}
.about-feature {
  transition: var(--transition-smooth);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.about-feature:hover {
  background-color: var(--accent-blue-light);
  transform: translateX(5px);
}
.about-feature:hover .about-feature-icon {
  transform: scale(1.1) translateY(-2px);
  color: var(--accent-emerald);
  transition: var(--transition-smooth);
}
.pricing-card {
  transition: var(--transition-smooth);
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Pogotowie Shield Image Styles */
.pogotowie-shield-img {
  width: 90px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4));
  animation: pulse-shield 2.5s infinite ease-in-out;
}

@keyframes pulse-shield {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.7)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.4)); }
}

@media (min-width: 1025px) and (max-width: 1250px) {
  .hero-engine-container {
    transform: scale(0.8);
    transform-origin: top center;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-bottom-row {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
  }
  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .services-grid, .compliance-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid, .ai-chat-interface {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  /* Mobile Navigation Collapse at 1024px */
  .header {
    height: 70px;
  }
  .header-bottom {
    display: block;
    height: 0;
    border: none;
    background: none;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-dark);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 999;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 1.25rem;
    color: #94A3B8;
  }
  .nav-link.active, .nav-link:hover {
    color: var(--text-white);
  }
  .menu-toggle {
    display: block;
  }
  .header-btn, .header-top-actions {
    display: none !important;
  }
}


@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .hero-bottom-row {
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-stats {
    width: 100%;
  }
  .services-grid, .compliance-grid, .pricing-grid, .pogotowie-cards {
    grid-template-columns: 1fr;
  }
  .pogotowie-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-image-overlay-card {
    left: 10px;
  }
  /* Mobile responsive engine styles */
  .hero-engine-container {
    display: flex !important;
    width: 100% !important;
    max-width: 450px;
    height: auto;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
  }
  .engine-gear, .connector-line, .engine-watermark-logo {
    display: none !important;
  }
  .engine-hub {
    position: relative;
    transform: none !important;
    top: auto;
    left: auto;
    margin: 1.5rem auto;
    order: 5; /* Put the hub at the bottom of the list on mobile */
  }
  .engine-node {
    position: relative;
    width: 100%;
    max-width: 450px;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0 auto;
    order: var(--step); /* Stacks Node 1, 2, 3, 4 sequentially */
  }
  .engine-node::after {
    content: '↓';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.25rem;
    color: var(--accent-blue);
    font-weight: 700;
    opacity: 0.6;
    animation: bounce-arrow 1.5s infinite ease-in-out;
  }
  .engine-node:last-of-type::after {
    display: none;
  }
  @keyframes bounce-arrow {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 5px); }
  }
}

