/* ==========================================================================
   AKAP-IT - Główny arkusz stylów CSS
   Nowoczesny, responsywny design z obsługą trybu ciemnego/jasnego
   (prefers-color-scheme + przełącznik w localStorage)
   ========================================================================== */


/* --- Zmienne motywu: Domyślny tryb jasny (Light Mode) --- */
:root {
  --theme-mode: 'light';
  
  /* Kolory bazowe */
  --primary: #0b1536;       /* Głęboki granat korporacyjny */
  --primary-light: #162454; /* Jaśniejszy granat */
  --primary-rgb: 11, 21, 54;
  --secondary: #0284c7;     /* Błękit technologiczny */
  --secondary-hover: #0369a1;
  --accent: #f59e0b;        /* Ciepły bursztyn/złoto akap-it */
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Tła i powierzchnie */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-elevated: #ffffff;
  
  /* Czcionka bazowa */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Tekst */
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #334155;
  --text-light: #64748b;
  --text-inverse: #ffffff;

  /* Ramki i separatory */
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;

  /* Cienie */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Nagłówek i szkło */
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(226, 232, 240, 0.8);

  /* Pomiary */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s ease-in-out;
}

/* --- Tryb ciemny w oparciu o prefers-color-scheme --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --theme-mode: 'dark';
    --primary: #0f1c3f;
    --primary-light: #1e293b;
    --primary-rgb: 15, 28, 63;
    --secondary: #38bdf8;
    --secondary-hover: #7dd3fc;
    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --accent-light: rgba(251, 191, 36, 0.15);

    --bg-page: #0b1120;
    --bg-surface: #131c31;
    --bg-surface-alt: #1a2642;
    --bg-elevated: #1e293b;

    --text-main: #f8fafc;
    --text-body: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-light: #94a3b8;
    --text-inverse: #0f172a;

    --border-color: #24324f;
    --border-subtle: #334155;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 30px -6px rgba(0, 0, 0, 0.7);

    --header-bg: rgba(11, 17, 32, 0.92);
    --header-border: rgba(36, 50, 79, 0.8);
  }
}

/* --- Ręczne nadpisanie trybu ciemnego (localStorage -> data-theme="dark") --- */
[data-theme="dark"] {
  --theme-mode: 'dark';
  --primary: #0f1c3f;
  --primary-light: #1e293b;
  --primary-rgb: 15, 28, 63;
  --secondary: #38bdf8;
  --secondary-hover: #7dd3fc;
  --accent: #fbbf24;
  --accent-hover: #f59e0b;
  --accent-light: rgba(251, 191, 36, 0.15);

  --bg-page: #0b1120;
  --bg-surface: #131c31;
  --bg-surface-alt: #1a2642;
  --bg-elevated: #1e293b;

  --text-main: #f8fafc;
  --text-body: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --text-inverse: #0f172a;

  --border-color: #24324f;
  --border-subtle: #334155;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 30px -6px rgba(0, 0, 0, 0.7);

  --header-bg: rgba(11, 17, 32, 0.92);
  --header-border: rgba(36, 50, 79, 0.8);
}

/* --- Ręczne nadpisanie trybu jasnego (localStorage -> data-theme="light") --- */
[data-theme="light"] {
  --theme-mode: 'light';
  --primary: #0b1536;
  --primary-light: #162454;
  --primary-rgb: 11, 21, 54;
  --secondary: #0284c7;
  --secondary-hover: #0369a1;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-elevated: #ffffff;

  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #334155;
  --text-light: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(226, 232, 240, 0.8);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.85rem, 3.2vw, 2.35rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.18rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

.hero h1 {
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background-color: var(--bg-surface-alt);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary { background: rgba(2, 132, 199, 0.12); color: var(--secondary); border: 1px solid rgba(2, 132, 199, 0.25); }
.badge-gold { background: rgba(245, 158, 11, 0.15); color: var(--accent); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }

/* --- Top Announcement Bar (Partner Status) --- */
.top-bar {
  background: var(--primary);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #f8fafc;
}

.top-bar-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-links a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.top-bar-links a:hover {
  color: #ffffff;
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: padding 0.2s;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

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

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

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.45rem 0.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary);
  font-weight: 600;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 330px;
  width: max-content;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-body);
  font-weight: 500;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--bg-surface-alt);
  color: var(--secondary);
}

.dropdown-title {
  padding: 0.4rem 1.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-actions .btn {
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

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

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--secondary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--secondary-hover);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #0b1536;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #0b1536;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-surface-alt);
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline-primary:hover {
  background: var(--secondary);
  color: #ffffff;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  padding: 4.5rem 0 5rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface-alt) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content, .hero-card {
  min-width: 0;
  max-width: 100%;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.stat-item h4 {
  font-size: 1.7rem;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Hero Feature Visual - Dashboard Simulation */
.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
  position: relative;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.hero-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.indicator-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dash-preview-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.metric-box .label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.metric-box .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-box .status-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.status-ok { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-info { background: rgba(2, 132, 199, 0.15); color: var(--secondary); }

.dash-events {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.event-row:last-child {
  border-bottom: none;
}

/* --- 3 Filary (Pillars Section) --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.pillar-card.featured {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15), var(--shadow-lg);
}

.pillar-card .pillar-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

.pillar-features {
  list-style: none;
  margin-bottom: 1.75rem;
}

.pillar-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.pillar-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Support Models (Helpdesk vs. Monitoring) --- */
.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.model-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.model-box.accent-box {
  border-top: 4px solid var(--secondary);
}

.model-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.model-box .model-subtitle {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* --- Calculator Section --- */
.calc-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  margin-top: 2rem;
}

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

.calc-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface-alt);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.calc-tab {
  flex: 1;
  text-align: center;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-muted);
  transition: var(--transition);
}

.calc-tab.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.radio-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-pill label {
  display: block;
  padding: 0.65rem 0.75rem;
  text-align: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.radio-pill input:checked + label {
  background: rgba(2, 132, 199, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
}

.calc-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.calc-slider-wrap input[type="range"] {
  flex-grow: 1;
  accent-color: var(--secondary);
}

.calc-counter {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  min-width: 45px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}

/* Calculator Summary Box */
.calc-summary {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.price-total {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--border-color);
}

.price-total .amount-netto {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.price-total .amount-brutto {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.change-partner-guide {
  margin-top: 1.5rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.85rem;
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  margin-top: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
}

.btn-copy {
  border: none;
  background: none;
  color: var(--secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
}
.btn-copy:hover {
  text-decoration: underline;
}

/* --- Clean B2B Product Cards (No Emojis) --- */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.prod-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.prod-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.prod-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.prod-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.prod-card p {
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.prod-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Action button row */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.action-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.action-tile:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.action-tile-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.action-tile-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Banner Box (e.g. Upgrade GT to nexo PRO) */
.banner-box {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.banner-box h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.banner-box p {
  color: #e0f2fe;
  margin: 0;
}

/* Ecosystem Banner */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.eco-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.eco-card:hover {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.eco-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
}

.eco-card h4 {
  font-size: 1.05rem;
  margin: 0.4rem 0;
}

.eco-card p {
  font-size: 0.8rem;
  margin: 0;
}

/* --- Modal / Exit-Intent & Order Popup --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.footer-col p {
  color: #e2e8f0;
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-col p strong {
  color: #ffffff;
}

.footer-col p a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col p a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.94rem;
  color: #cbd5e1;
}

.footer-contact-item a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-contact-item span {
  color: #e2e8f0;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

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

/* --- Szczegółowa specyfikacja funkcjonalna modułów InsERT --- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.spec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.spec-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.spec-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.spec-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.spec-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.spec-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-main);
  flex-grow: 1;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}

.spec-list li svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 3px;
}

.spec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.spec-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.spec-tag.pro {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-color: var(--accent);
}

/* Tabela porównawcza GT vs nexo vs nexo PRO */
.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-surface-alt);
  font-weight: 700;
  color: var(--text-main);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(2, 132, 199, 0.03);
}

/* --- Wzorcowa Karta Produktu: Zakładki (Opis / Ekrany / Wymagania / Porównanie) --- */
.product-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2.5rem;
}

.product-tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.9rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition);
}

.product-tab-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.product-tab-btn:hover {
  color: var(--secondary);
  background: rgba(2, 132, 199, 0.04);
}

.product-tab-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
  background: rgba(2, 132, 199, 0.06);
}

.product-tab-panel {
  display: none;
  animation: tabFadeIn 0.22s ease;
}

.product-tab-panel.active {
  display: block;
}

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

/* --- Baner KSeF (Krajowy System e-Faktur) --- */
.ksef-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.ksef-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

/* --- Wzorcowe Układy Grida Karty Produktu --- */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.product-hero-info {
  display: flex;
  flex-direction: column;
}

.product-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.product-hero-visual {
  text-align: center;
}

.product-hero-box-img {
  max-width: 210px;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.18));
  margin: 0 auto;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  margin: 2.5rem 0;
  align-items: start;
}

.pro-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.pro-header-visual {
  text-align: center;
}

.pro-header-visual img {
  max-width: 115px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
  margin: 0 auto;
}

.product-gt-header-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

/* --- Sekcja Rozszerzeń Wersji PRO (2-kolumnowa lista) --- */
.pro-section-box {
  background: var(--bg-surface);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-top: 2.5rem;
}

.pro-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.pro-checklist-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main);
}

.pro-checklist-grid li svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Galeria Ekranów Przykładowych i Lightbox --- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.screen-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.screen-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.screen-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface-alt);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.screen-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.screen-card:hover .screen-thumb-wrap img {
  transform: scale(1.04);
}

.screen-zoom-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(11, 21, 54, 0.82);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.screen-caption {
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 25, 0.88);
  backdrop-filter: blur(6px);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 1400px;
  max-height: 82vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #ffffff;
}

.lightbox-caption {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: rgba(239, 68, 68, 0.8);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

@media (max-width: 1600px) {
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
}

/* --- Centralny Moduł Wymagań Systemowych (js/wymagania.js) --- */
.req-wrapper {
  margin-top: 0.5rem;
}

.req-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.req-notes-box {
  margin-top: 1.75rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.req-note-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.req-note-item strong {
  color: var(--text-main);
}

/* Elementy widoczne wyłącznie w menu mobilnym */
.mobile-only {
  display: none !important;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid,
  .product-hero-grid,
  .product-spec-grid,
  .pro-header-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .product-hero-visual {
    margin-top: 1rem;
    text-align: center;
  }
  .product-hero-box-img {
    max-width: 190px;
  }
  .pro-header-grid {
    text-align: center;
    gap: 1.25rem !important;
  }
  .pro-header-grid .btn {
    width: 100%;
    justify-content: center;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .req-grid {
    grid-template-columns: 1fr;
  }
  .pro-checklist-grid {
    grid-template-columns: 1fr;
  }
  .ksef-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Ukrycie przycisku Pomoc Zdalna w belce na telefonie */
  .nav-actions .btn {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .nav-menu {
    display: none; /* Mobile menu handled by JS toggle */
  }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
  }
  .dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .mobile-toggle {
    display: block;
  }
  .models-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  /* Nowoczesny pasek zakładek na telefonie – płynne dotykowe przewijanie poziome */
  .product-tabs-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    margin-bottom: 1.75rem;
  }
  .product-tabs-bar::-webkit-scrollbar {
    display: none;
  }
  .product-tab-btn {
    width: auto !important;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.65rem 0.95rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .dash-preview-metrics {
    grid-template-columns: 1fr;
  }
  .hero-card-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hero-card-title {
    font-size: 0.88rem;
  }
  .ecosystem-grid {
    grid-template-columns: 1fr !important;
  }
  .spec-grid {
    grid-template-columns: 1fr !important;
  }
  .product-hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .product-hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .product-hero-box-img {
    max-width: 170px;
  }
  .ksef-banner {
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }
  .ksef-banner .btn {
    width: 100%;
    justify-content: center;
  }
  .pro-section-box {
    padding: 1.35rem 1rem;
  }
  .screens-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .product-gt-header-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .product-gt-header-grid img {
    margin: 0 auto;
  }
}

/* --- Sekcja NAS QNAP, AMIZ Cloud & Partner Banner --- */
.nas-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 480px;
  margin: 0 auto;
  transition: var(--transition);
}

.nas-hero-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.nas-hero-img-wrap {
  position: relative;
  background: #0d1526;
  overflow: hidden;
}

.nas-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nas-hero-card:hover .nas-hero-img {
  transform: scale(1.03);
}

.nas-hero-badge-overlay {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(11, 21, 54, 0.88);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nas-hero-badge-overlay .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.nas-hero-meta {
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.amiz-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
  margin-top: 1.75rem;
}

.amiz-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.75rem 0;
}

.amiz-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.amiz-feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.12);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amiz-feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amiz-feature-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--text-main);
}

.amiz-feature-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.partner-showcase-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.25rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-left: 5px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  margin-top: 3rem;
}

.partner-logo-container {
  background: #ffffff;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  max-width: 210px;
}

[data-theme="dark"] .partner-logo-container {
  background: rgba(255, 255, 255, 0.96);
}

.partner-logo-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 90px;
  object-fit: contain;
}

@media (max-width: 992px) {
  .amiz-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .partner-showcase-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- Siatka Certyfikowanych Partnerów (O nas) --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.partner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.partner-card-logo-wrap {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  height: 85px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.partner-card-logo-wrap img {
  max-height: 55px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

.partner-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.partner-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.partner-card .btn {
  width: 100%;
  justify-content: center;
}

/* Stats / Trust bar */
.trust-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-top: 2.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.trust-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.trust-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .trust-stats-bar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}



/* --- Komponenty Navireo i KSeF --- */
.erp-compare-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.erp-compare-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.erp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .erp-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .erp-feature-grid {
    grid-template-columns: 1fr;
  }
}
.ksef-banner p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Pasek Partnerów na Stronie Głównej --- */
.partners-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 0;
}

.partners-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.partners-strip-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.partners-strip-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  flex-grow: 1;
}

.partner-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 0.25rem;
}

.partner-strip-item img {
  max-height: 54px;
  max-width: 175px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.partner-strip-item:hover img {
  transform: translateY(-2px) scale(1.05);
}

@media (max-width: 900px) {
  .partners-strip-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .partners-strip-logos {
    gap: 1.25rem;
    justify-content: center;
  }
  .partner-strip-item {
    height: 48px;
  }
  .partner-strip-item img {
    max-height: 44px;
    max-width: 140px;
  }
}

/* --- Miniatury pudełek w kafelkach produktów --- */
.prod-card-thumb {
  height: 110px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

.prod-card-thumb img {
  max-height: 95px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease;
}

.prod-card:hover .prod-card-thumb img {
  transform: scale(1.08) translateY(-2px);
}

/* --- Zdjęcia w kafelkach Oferty IT --- */
.spec-card-media {
  height: 140px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.spec-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spec-card-media.contain-img img {
  object-fit: contain;
  padding: 1.25rem;
}

.spec-card:hover .spec-card-media img {
  transform: scale(1.04);
}

/* --- ERP Comparison Grid --- */
.erp-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .erp-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .partners-strip-label {
    white-space: normal;
    text-align: center;
    width: 100%;
  }
  .partners-strip-logos {
    justify-content: center;
    gap: 1.25rem;
  }
  .hero-card {
    padding: 1.25rem;
  }
  .dash-preview-metrics {
    gap: 0.65rem;
  }
}
