/* ==========================================================================
   elidea.sk – Inžiniersky Light Mode Design System
   Prevádzkovateľ: elServis Levice s.r.o.
   Písma: Inter (Texty) & JetBrains Mono (Technické CAD prvky a kóty)
   ========================================================================== */

:root {
  /* Farby a povrchy */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-top-bar: #0f172a;
  
  /* Hranice a mriežky */
  --border-light: #e2e8f0;
  --border-focus: #0284c7;
  --border-cad-grid: rgba(2, 132, 199, 0.08);

  /* Typografia - text */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-inverted: #ffffff;

  /* Inžinierske akcenty (CAD modrá & Laser tyrkys) */
  --accent-cad: #0284c7;
  --accent-cad-hover: #0369a1;
  --accent-cad-light: #e0f2fe;
  --accent-laser: #0ea5e9;
  --accent-laser-light: #f0f9ff;
  --accent-success: #10b981;
  --accent-danger: #ef4444;

  /* Písma */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "SFMono-Regular", Consolas, monospace;

  /* Tiene a hĺbka */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1);
  --shadow-cad: 0 0 0 1px #e2e8f0, 0 4px 16px rgba(2, 132, 199, 0.06);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Prechody */
  --trans-fast: 0.15s ease;
  --trans-base: 0.25s ease;
}

/* Reset a základné formátovanie */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cad) #f1f5f9;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

/* ==========================================================================
   VLASTNÝ INŽINIERSKY SCROLLBAR (CAD & LASER BLUE)
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-left: 1px solid var(--border-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cad) 0%, var(--accent-laser) 100%);
  border-radius: var(--radius-pill);
  border: 2px solid #f1f5f9;
  transition: all var(--trans-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-cad-hover) 0%, var(--accent-cad) 100%);
  border: 1px solid #e2e8f0;
}

::-webkit-scrollbar-corner {
  background: #f1f5f9;
}

/* Rolovacie lišty pre modálne okná (GDPR, podmienky) */
.modal-body::-webkit-scrollbar,
.legal-text-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track,
.legal-text-body::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.legal-text-body::-webkit-scrollbar-thumb {
  background: var(--accent-cad);
  border-radius: 4px;
}


body.engineering-light-theme {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

main, section, header, footer, nav, .container {
  max-width: 100%;
  box-sizing: border-box;
}

p, span, h1, h2, h3, h4, h5, h6, a, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Kontajnery */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: var(--accent-cad);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--accent-cad-hover);
}

ul {
  list-style: none;
}

.mono-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.sub-heading-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-cad);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 4px 10px;
  background-color: var(--accent-cad-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Sekcie & Padding */
.section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
}

.bg-subtle {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  max-width: 800px;
  margin-bottom: 56px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: 2.375rem;
  margin-top: 8px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   TOP INFO / PRECISION ANNOUNCEMENT BAR
   ========================================================================== */
.top-info-bar {
  background-color: var(--bg-top-bar);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.top-info-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: clamp(8px, 1.5vw, 16px);
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-info-icon {
  color: var(--accent-laser);
  flex-shrink: 0;
}

.desktop-address {
  display: inline;
}

.mobile-address {
  display: none;
}

.top-link {
  color: #f1f5f9;
}

.top-link:hover {
  color: var(--accent-laser);
  text-decoration: underline;
}

.bold-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ==========================================================================
   MAIN HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--trans-fast), background-color var(--trans-fast);
}

.main-header.scrolled {
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cad);
}

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

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-tld {
  color: var(--accent-cad);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 3px;
}

.desktop-nav .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
  flex-wrap: nowrap;
  list-style: none;
}

.desktop-nav .nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
  list-style: none;
}

.nav-link {
  font-size: clamp(0.8125rem, 0.88vw, 0.875rem);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 3px;
  position: relative;
  white-space: nowrap;
  transition: color var(--trans-fast);
}

.nav-link:hover {
  color: var(--accent-cad);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-cad);
  transition: width var(--trans-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Jazykový prepínač (SK / EN) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
  transition: all var(--trans-fast);
  min-height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background-color: #ffffff;
  color: var(--accent-cad);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.lang-divider {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #cbd5e1;
  user-select: none;
}

/* Mobilné Menu Tlačidlo */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: var(--text-primary);
  transition: 0.2s ease;
}

.mobile-drawer-lang {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-lang-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Mobilný Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 2px solid var(--accent-cad);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-contact-line {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

/* ==========================================================================
   BUTTONS (INŽINIERSKY ŠTÝL)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-cad);
  color: #ffffff;
  border-color: var(--accent-cad);
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-cad-hover);
  border-color: var(--accent-cad-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
  color: var(--accent-cad);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-text-only {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px;
}

.btn-text-only:hover {
  color: var(--accent-cad);
}

/* ==========================================================================
   HERO SEKCOVA S CAD MRIEŽKOU & 3D VIZUÁLOM
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #ffffff;
  padding-top: 80px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

/* Jemná technická sub-pixel mriežka */
.cad-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--border-cad-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-cad-grid) 1px, transparent 1px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cad);
  border-radius: 50%;
}

.mono-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.highlight-cad {
  color: var(--accent-cad);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-badge strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.trust-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* CAD Spec Card vo Hero */
.cad-spec-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--trans-base);
}

.cad-spec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 32px -8px rgba(15, 23, 42, 0.12);
}

.card-top-bar {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.mono-file {
  color: #94a3b8;
}

.card-status-tags {
  display: flex;
  gap: 8px;
}

.badge-tag {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  background-color: #334155;
  color: #f8fafc;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.badge-tag.blue {
  background-color: var(--accent-cad);
}

.cad-wireframe-display {
  padding: 16px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.cad-isometric-svg {
  width: 100%;
  height: auto;
  display: block;
}

.card-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border-light);
}

.telemetry-box {
  background-color: #f8fafc;
  padding: 12px 16px;
}

.tele-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tele-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}

/* ==========================================================================
   SERVICES GRID (4 CORE INŽINIERSKE PILIERE)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--trans-base);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: #0284c7;
  transform: translateY(-4px);
  box-shadow: var(--shadow-cad);
}

.service-card.featured {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 28%);
}

.badge-featured {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #0369a1;
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--accent-cad-light);
  color: var(--accent-cad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-bullets {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-bullets li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}

.service-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-cad);
  font-size: 1rem;
}

.card-footer-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: #f1f5f9;
  color: #334155;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   PORTFOLIO & WORK SHOWCASE GALLERY (ČISTÁ MREŽA 3x2 S VYSÚVANÍM)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: all 0.3s ease;
}

/* Zbalený stav: zobrazí presne 3 vedľa seba x 2 na výšku (prvých 6 položiek) */
.portfolio-grid.collapsed .portfolio-item:nth-child(n+7) {
  display: none !important;
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.portfolio-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-fast);
}

.portfolio-item:hover .portfolio-media-wrap {
  transform: translateY(-4px);
  border-color: var(--accent-cad);
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.18);
}

.portfolio-video,
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-video,
.portfolio-item:hover .portfolio-img {
  transform: scale(1.04);
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, transparent 40%, rgba(15, 23, 42, 0.4) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 12px;
  pointer-events: none;
}

.media-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.video-badge {
  background-color: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.zoom-icon {
  font-size: 0.9375rem;
  background-color: rgba(255, 255, 255, 0.95);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  margin-left: auto;
}

/* Tlačidlo vysunutia galérie */
.portfolio-toggle-container {
  margin-top: 36px;
}

.portfolio-toggle-container .btn {
  padding: 12px 28px;
  font-size: 0.9375rem;
}

.toggle-arrow-icon {
  transition: transform 0.25s ease;
}

.toggle-arrow-icon.rotated {
  transform: rotate(180deg);
}

/* Lightbox Modal */
.lightbox-overlay {
  z-index: 20000;
}

.lightbox-box {
  background-color: #0f172a;
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-badge {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
}

.lightbox-close-btn {
  background: none;
  border: none;
  color: #f8fafc;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media-container {
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #020617;
  overflow: hidden;
}

.lightbox-media-container video,
.lightbox-media-container img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 14px 20px;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0f172a;
}

/* ==========================================================================
   SEGMENTS & INDUSTRIAL APPLICATIONS
   ========================================================================== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.segment-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-fast);
}

.segment-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.segment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.segment-idx {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-cad);
}

.segment-card h4 {
  font-size: 1.125rem;
  line-height: 1.35;
}

.segment-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.segment-badge {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-cad);
  background-color: var(--accent-cad-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

/* ==========================================================================
   TECHNOLOGY ECOSYSTEM & COMPATIBILITY TABLE
   ========================================================================== */
.cad-ecosystem-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.cad-eco-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.eco-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background-color: #0f172a;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.eco-icon.sw { background-color: #dc2626; }
.eco-icon.inv { background-color: #ea580c; }
.eco-icon.acad { background-color: #b91c1c; }
.eco-icon.scan { background-color: #0284c7; }

.eco-info h5 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.eco-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

.table-responsive-wrapper {
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.engineering-table th {
  background-color: #f8fafc;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.engineering-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

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

.engineering-table tr:hover td {
  background-color: #f8fafc;
}

.status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.status-pill.full {
  background-color: #dcfce7;
  color: #166534;
}

.status-pill.high {
  background-color: #e0f2fe;
  color: #0369a1;
}

.status-pill.native {
  background-color: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   4-KROKOVÝ PROCES SPOLUPRÁCE
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #cbd5e1, #cbd5e1 8px, transparent 8px, transparent 16px);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.step-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--accent-cad);
  color: var(--accent-cad);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 0 0 6px #f8fafc;
}

.timeline-step:hover .step-badge {
  background-color: var(--accent-cad);
  color: #ffffff;
  box-shadow: 0 0 0 6px var(--accent-cad-light);
}

.step-timing {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-cad);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.step-content h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans-fast);
}

.faq-item.active {
  border-color: var(--accent-cad);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  gap: 16px;
}

.faq-toggle-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-cad);
  line-height: 1;
  transition: transform var(--trans-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   CONTACT SECTION, TEAM & DRAG-AND-DROP FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: flex-start;
}

.contact-title {
  font-size: 2.25rem;
  margin-top: 8px;
  margin-bottom: 16px;
}

.contact-intro {
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

.info-block-card {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-cad-light);
  color: var(--accent-cad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-block-card h5 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.info-block-card p {
  font-size: 0.875rem;
  line-height: 1.45;
}

.phone-link {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.team-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar-ph {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #0f172a;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card h6 {
  font-size: 0.9375rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-cad);
}

.team-focus {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.team-email {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-cad);
}

/* Inžiniersky formulár */
.form-container-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.engineering-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.req {
  color: var(--accent-danger);
}

.optional {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  transition: all var(--trans-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cad);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* DRAG & DROP UPLOAD ZÓNA */
.drag-drop-zone {
  position: relative;
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.drag-drop-zone:hover,
.drag-drop-zone.dragover {
  border-color: var(--accent-cad);
  background-color: var(--accent-laser-light);
}

.drag-drop-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.upload-icon-circle {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.drop-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.browse-link {
  color: var(--accent-cad);
  text-decoration: underline;
}

.drop-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Zoznam pridaných súborov */
.file-list-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
}

.file-name {
  color: var(--text-primary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--accent-danger);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 2px 6px;
}

/* NDA & GDPR prvky vo formulári */
.nda-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #0369a1;
  line-height: 1.4;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox-group input {
  margin-top: 3px;
  cursor: pointer;
  width: 22px;
  height: 22px;
  min-width: 22px;
  accent-color: var(--accent-cad);
}

.form-checkbox-group label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.text-link-btn {
  background: none;
  border: none;
  color: #0284c7;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 4px 2px;
  display: inline;
}

.form-status-alert {
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.form-status-alert.success {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ==========================================================================
   FOOTER & LEGAL
   ========================================================================== */
.main-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding-top: 72px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-mission {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-operator-badge {
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.elservis-link {
  color: #0284c7;
  text-decoration: underline;
  display: inline-block;
  padding: 2px 0;
}

.elservis-link:hover {
  color: #0369a1;
}

.elservis-web a {
  color: #0284c7;
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: underline;
  display: inline-block;
  padding: 4px 0;
}

.elservis-web a:hover {
  color: #0369a1;
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-cad);
}

.footer-contact-p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-contact-p a {
  display: inline-block;
  padding: 4px 0;
  color: #0284c7;
}

.legal-mini-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal-btn {
  background: none;
  border: none;
  color: #0284c7;
  text-align: left;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

.footer-legal-btn:hover {
  color: #0369a1;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  background-color: #f8fafc;
  padding: 20px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.elservis-credit-link {
  color: #0284c7;
  text-decoration: underline;
  display: inline-block;
  padding: 4px 0;
}

.elservis-credit-link:hover {
  color: #0369a1;
}

.mono-cad-rev {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #475569;
}

/* ==========================================================================
   COOKIE BANNER (1. STUPEŇ) & MODÁLNE OKNÁ (2. STUPEŇ)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-text-col {
  flex: 1;
  min-width: 300px;
}

.cookie-title {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.cookie-desc {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions .btn-text-only {
  color: #93c5fd;
  text-decoration: underline;
  font-size: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 500;
  transition: color var(--trans-fast);
}

.cookie-actions .btn-text-only:hover {
  color: #ffffff;
}

/* Modálne okná */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-box.modal-lg {
  max-width: 800px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-intro {
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.cookie-pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.pref-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pref-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.tag-locked {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  background-color: #e2e8f0;
  color: #475569;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Switch UI - Accessible min 44px touch target */
.pref-switch {
  position: relative;
  width: 50px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pref-switch input {
  opacity: 0;
  width: 50px;
  height: 44px;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.switch-ui {
  position: relative;
  cursor: pointer;
  width: 46px;
  height: 26px;
  background-color: #cbd5e1;
  border-radius: 26px;
  transition: 0.2s;
  pointer-events: none;
}

.switch-ui::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.2s;
}

input:checked + .switch-ui {
  background-color: var(--accent-cad);
}

input:checked + .switch-ui::before {
  transform: translateX(20px);
}

.switch-ui.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: #f8fafc;
}

/* GDPR Modal text styling */
.legal-text-body h4 {
  font-size: 1.0625rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-text-body p, 
.legal-text-body ul {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.legal-text-body ul {
  padding-left: 20px;
  list-style: disc;
}

.callout-box {
  background-color: #f0f9ff;
  border-left: 4px solid var(--accent-cad);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin: 16px 0;
  line-height: 1.5;
}

/* ==========================================================================
   RESPONZÍVNE PRVKY (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cad-ecosystem-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .process-timeline::before {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  /* Mobilná optimalizácia horného informačného bannera (čistý 1-riadkový layout) */
  .top-info-bar {
    padding: 7px 0;
    font-size: 0.75rem;
  }
  .top-info-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .desktop-address {
    display: none !important;
  }
  .mobile-address {
    display: inline-block !important;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  .top-info-item {
    font-size: 0.75rem;
    gap: 6px;
    white-space: nowrap;
  }
  .top-info-item.address-item {
    width: auto;
    justify-content: flex-start;
    padding-bottom: 0;
    border-bottom: none;
    overflow: hidden;
  }
  .top-info-item.hours-item {
    display: none !important; /* Na mobile uvoľníme priestor, kompletné hodiny sú v menu a v kontakte */
  }
  .top-info-item.contact-quick {
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
  }
  .top-info-item.contact-quick .bold-phone {
    color: #38bdf8;
    font-weight: 700;
  }

  @media (max-width: 380px) {
    .mobile-address {
      max-width: 130px;
    }
    .top-info-item.contact-quick .bold-phone {
      font-size: 0.7rem;
    }
  }
  /* Kontajner – optimalizácia šírky a paddingov pre mobil */
  .container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: 2.25rem;
  }
  .hero-trust-badges {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .segments-grid {
    grid-template-columns: 1fr;
  }

  /* 1. SOFTVÉROVÉ ZÁZEMIE – Mobilné karty softvérov */
  .cad-ecosystem-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }
  .cad-eco-card {
    padding: 16px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 2. TABUĽKA FORMÁTOV – Mobilná transformácia na prehľadné karty bez nutnosti bočného posunu */
  .table-responsive-wrapper {
    overflow-x: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .engineering-table {
    display: block;
    width: 100%;
    border-collapse: separate;
  }

  .engineering-table thead {
    display: none; /* Hlavička tabuľky je na mobile skrytá v prospech kontextových kariet */
  }

  .engineering-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .engineering-table tr {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transition: border-color var(--trans-fast);
  }

  .engineering-table tr:hover {
    border-color: var(--accent-cad);
    background-color: #ffffff;
  }

  .engineering-table td {
    display: block;
    padding: 0;
    border: none;
    width: 100%;
    box-sizing: border-box;
  }

  /* Formát / Prípona (Hlavný názov karty) */
  .engineering-table td:nth-child(1) {
    font-size: 0.9375rem;
    color: var(--accent-cad);
    font-weight: 700;
    padding-right: 110px; /* Vyhradený priestor pre status pill vpravo */
    margin-bottom: 2px;
    line-height: 1.35;
  }

  /* Kompatibilita (Status pill vpravo hore) */
  .engineering-table td:nth-child(4) {
    position: absolute;
    top: 14px;
    right: 14px;
    width: auto;
  }

  /* Typ súboru */
  .engineering-table td:nth-child(2) {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
  }

  /* Typické využitie v praxi */
  .engineering-table td:nth-child(3) {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }

  /* 3. 4-KROKOVÝ PROCES SPOLUPRÁCE – Fixné zarovnanie na celú šírku bez pretiahnutia */
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .process-timeline::before {
    display: none !important;
  }
  .timeline-step {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 4. FAQ SEKCIA */
  .faq-accordion-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .faq-question {
    padding: 16px;
    font-size: 0.9375rem;
  }
  .faq-answer {
    padding: 0 16px 16px 16px;
  }

  /* 5. KONTAKT A INŽINIERSKY FORMULÁR – Pevné ohraničenie */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-info-col,
  .contact-form-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .form-container-card {
    padding: 24px 16px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-md);
  }
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .drag-drop-zone {
    padding: 20px 14px;
  }
  .file-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .file-name {
    max-width: calc(100% - 36px);
    min-width: 0;
  }
  .team-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .team-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .team-email {
    word-break: break-all;
  }
  .info-block-card {
    padding: 14px 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .phone-link {
    font-size: 1rem;
  }

  /* 6. PÄTIČKA (FOOTER) */
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 7. COOKIE BANNER – Zamedzenie bočného posunu */
  .cookie-banner {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 16px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    box-sizing: border-box;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }
  .cookie-text-col {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .cookie-actions {
    width: 100% !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .cookie-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}
