/* ============================================
   SL Systems - Profesionálny dizajn v2
   Farby: Modrá (#0d47a1) + Oranžová (#ff6f00)
   ============================================ */

/* CSS Variables - Moderná paleta */
:root {
  /* Hlavná farba - modrá */
  --primary: #0d47a1;
  --primary-light: #1976d2;
  --primary-dark: #002171;
  
  /* Akcentná farba - oranžová */
  --accent: #ff6f00;
  --accent-hover: #ff8f00;
  --accent-light: #ffa040;
  
  /* Neutrálne farby */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Tmavé pozadie */
  --dark-bg: #0f0f0f;
  --dark-secondary: #1a1a1a;
  --dark-overlay: rgba(0, 0, 0, 0.7);
  
  /* Gradienty */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  --gradient-dark: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
  
  /* Šírka */
  --container-max: 1280px;
  --container-padding: 1.5rem;
  
  /* Fonty */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Tieňové efekty */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
  --shadow-accent: 0 4px 20px rgba(255, 111, 0, 0.3);
  
  /* Prechody */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset a základné štýly */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BUTTONS - Moderné tlačidlá
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
  color: var(--white);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 111, 0, 0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-light {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--white);
}

.btn-light:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   HEADER - Sticky s blur efektom
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled,
body.subpage .header {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

/* Header-top skrytý všade */
.header-top {
  display: none;
}

/* Navbar na homepage (pred scrollom) - jemná šedá */
.navbar {
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.header-contact span {
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-contact i {
  color: var(--accent);
}

.header-lang {
  display: flex;
  gap: 0.5rem;
}

.header-lang a {
  color: var(--gray-400);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.header-lang a.active,
.header-lang a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Navigácia - duplikát odstránený, definícia je vyššie */

.header.scrolled .navbar,
body.subpage .header .navbar {
  padding: 0.4rem 0;
}

.header.scrolled .logo img,
body.subpage .header .logo img {
  height: 40px;
  transition: height 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 55px;
  width: auto;
  transition: height 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-menu > li > a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 6px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--accent);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
  width: 20px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--dark-secondary);
  list-style: none;
  padding: 0.75rem 0;
  margin: 0.5rem 0 0;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  border-top: 3px solid var(--accent);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--gray-300);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  padding-left: 1.75rem;
}

.dropdown-menu a i {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Mobile menu toggle */
.navbar-toggler {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.navbar-toggler span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.navbar-toggler.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SLIDER - CSS-only slider
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slider-item {
  flex: 0 0 100%;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(13, 71, 161, 0.9) 0%, 
    rgba(13, 71, 161, 0.7) 50%, 
    rgba(0, 0, 0, 0.8) 100%);
}

.slider-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  width: 100%;
  padding: 2rem;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  color: white;
  font-size: 2rem;
  line-height: 1;
  user-select: none;
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
  background: var(--accent);
}

.slider-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  width: 100%;
  padding: 2rem;
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.slider-content h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.slider-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.slider-content .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Autoplay animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-item.active .slider-content h1,
.slider-item.active .slider-content h2,
.slider-item.active .slider-content h3,
.slider-item.active .slider-content p,
.slider-item.active .slider-content .btn-group {
  animation: fadeInUp 0.8s ease forwards;
}

.slider-item.active .slider-content h2 { animation-delay: 0.1s; }
.slider-item.active .slider-content p { animation-delay: 0.2s; }
.slider-item.active .slider-content .btn-group { animation-delay: 0.3s; }

/* ============================================
   STATISTIKY - Moderné čísla
   ============================================ */
.stats {
  background: var(--gradient-dark);
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  color: var(--white);
}

.stat-item {
  padding: 2rem 1rem;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.1);
}

.stat-item:last-child::after {
  display: none;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ============================================
   SLUŽBY - Moderné karty
   ============================================ */
.services {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
  box-shadow: 0 10px 30px rgba(13, 71, 161, 0.3);
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
  border-radius: 50%;
}

.service-icon i {
  font-size: 2.25rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  transition: color var(--transition-fast);
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.read-more i {
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--accent);
  gap: 0.75rem;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* ============================================
   O NÁS - Moderná sekcia
   ============================================ */
.about {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.about-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: 12px;
  transition: all var(--transition-normal);
}

.about-feature:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.about-feature i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 0.25rem;
}

.about-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--gray-900);
}

.about-feature p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--accent);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ============================================
   PORTFÓLIO - Moderná galéria
   ============================================ */
.portfolio {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--gray-900);
}

.portfolio .section-title {
  color: var(--white);
}

.portfolio .section-subtitle {
  color: var(--gray-400);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(13, 71, 161, 0.95) 0%, 
    rgba(13, 71, 161, 0.5) 50%, 
    transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay h4 {
  transform: translateY(0);
}

.portfolio-overlay p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  transition: transform var(--transition-normal) 0.1s;
}

.portfolio-item:hover .portfolio-overlay p {
  transform: translateY(0);
}

.portfolio-link {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  transform: scale(0);
  transition: transform var(--transition-normal) 0.2s;
}

.portfolio-item:hover .portfolio-link {
  transform: scale(1);
}

.portfolio-link:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   KLIENTI / PARTNERI
   ============================================ */
.clients {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--white);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.client-item {
  padding: 1.5rem;
  transition: all var(--transition-normal);
  border-radius: 12px;
}

.client-item:hover {
  background: var(--gray-50);
  transform: translateY(-5px);
}

.client-item img {
  max-width: 150px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-normal);
}

.client-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   KONTAKT CTA
   ============================================ */
.contact-cta {
  background: var(--gradient-primary);
  padding: clamp(3rem, 6vw, 5rem) 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.contact-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--white);
}

.contact-cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-cta .btn {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

.contact-cta .btn:hover {
  background: transparent;
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--gray-400);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 45px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-500);
}

.footer h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer ul a {
  color: var(--gray-500);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer ul a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-fast);
  color: var(--accent);
}

.footer ul a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer ul a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 0.25rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--gray-600);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item::after {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--dark-bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Backdrop keď je menu otvorené */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .nav-menu > li > a {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .navbar-toggler {
    display: block;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-radius: 8px;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .slider-item,
  .hero-slider .slick-list,
  .hero-slider .slick-track {
    height: auto;
    min-height: 100vh;
  }
  
  .hero-slider .slick-prev {
    left: 15px;
    width: 45px;
    height: 45px;
  }
  
  .hero-slider .slick-next {
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Animácie pre scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   JOOMLA - Integrácia modulov
   ============================================ */

/* Reset Joomla wrapper divy */
.moduletable,
.mod-custom,
.mod_custom {
  margin: 0;
  padding: 0;
}

/* Navigácia - Joomla menu modul */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}

/* Joomla active/current class podpora */
.nav-menu > li > span {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  font-weight: 500;
}

.nav-menu > li.active > a,
.nav-menu > li.current > a {
  color: var(--accent);
}

/* Dropdown podmenu */
.nav-menu li.dropdown {
  position: relative;
}

.nav-menu li.dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  border-top: 3px solid var(--accent);
  z-index: 100;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
}

.nav-menu li.dropdown:hover > .dropdown-menu {
  display: block;
}

.nav-menu .dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.nav-menu .dropdown-menu li a:hover {
  background: var(--gray-100);
  color: var(--accent);
}

/* ---- Stats - Joomla mod-custom wrapper zneviditeľniť ---- */
.stats .mod-custom,
.stats .moduletable {
  display: contents;
}

/* ---- Services - Joomla mod-custom wrapper zneviditeľniť ---- */
.services .mod-custom,
.services .moduletable {
  display: contents;
}

/* ---- Všetky sekcie - Joomla wrapper fix ---- */
.about .mod-custom,
.portfolio .mod-custom,
.clients .mod-custom,
.contact-cta .mod-custom,
.about .moduletable,
.portfolio .moduletable,
.clients .moduletable,
.contact-cta .moduletable {
  display: contents;
}

/* ---- Portfolio grid - cez moduly ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ---- Klienti grid - cez moduly ---- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

/* ---- Sidebar ---- */
.row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   JOOMLA ČLÁNOK - štýly pre štandardný editor
   ============================================ */

.item-page,
.com-content-article {
  max-width: 900px;
  margin: 0 auto;
}

/* Názov článku */
.page-header,
.com-content-article__header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--accent);
}

.page-header h1,
.com-content-article__header h1,
.item-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin: 0;
}

/* Skryť Joomla meta info (autor, dátum, kategória) */
.article-info,
.com-content-article__details {
  display: none;
}

/* Nadpisy v texte */
.item-page h2,
.com-content-article__body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 2.5rem 0 1rem;
}

.item-page h3,
.com-content-article__body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 2rem 0 0.75rem;
}

/* Odstavce */
.item-page p,
.com-content-article__body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
}

/* Obrázky */
.item-page img,
.com-content-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.item-page .pull-right,
.com-content-article__body .pull-right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  max-width: 45%;
}

.item-page .pull-left,
.com-content-article__body .pull-left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  max-width: 45%;
}

/* Zoznamy */
.item-page ul,
.item-page ol,
.com-content-article__body ul,
.com-content-article__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.item-page li,
.com-content-article__body li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

/* Horizontálna čiara */
.item-page hr,
.com-content-article__body hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 2.5rem 0;
}

/* Citácia */
.item-page blockquote,
.com-content-article__body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-600);
}

/* Navigácia medzi článkami */
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.pager a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.pager a:hover {
  color: var(--accent);
}

/* Joomla paginacia */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.pagination .page-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  color: var(--primary);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Joomla formuláre (kontaktný, prihlasovací) */
.contact-form .form-group,
.login .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label,
.login label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.login input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.login input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Joomla správy (alerts) */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Header-top modul (jazykový prepínač, kontakt) */
.header-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-lang {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.header-lang a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.header-lang a.active,
.header-lang a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Jazykový prepínač Joomla (mod_languages) */
.mod-languages {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.mod-languages a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.mod-languages a.active,
.mod-languages a:hover {
  background: var(--accent);
  color: var(--white);
}

/* Podstránky - odsadenie pod fixed header (bez header-top) */
body.subpage .main-content {
  padding-top: 80px;
  padding-bottom: 4rem;
}

.main-content {
  padding: 3rem 0;
}


/* ============================================
   TECHNIKA - zoznam vybavenia
   ============================================ */

.technika-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.technika-skupina {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border-top: 3px solid var(--accent);
}

.technika-skupina h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.75rem 0;
}

.technika-skupina ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.technika-skupina ul li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1.4;
}

.technika-skupina ul li:last-child {
  border-bottom: none;
}

/* Toto nahradí chýbajúci Bootstrap 5 float */
.float-start {
    float: left !important;
    margin-right: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.float-end {
    float: right !important;
    margin-left: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* ============================================
   GALÉRIA
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  background: var(--gray-200);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(0,0,0,0.4);
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
  opacity: 1;
}


/* Gallery stĺpce */
.gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .gallery-cols-2,
  .gallery-cols-3,
  .gallery-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .gallery-cols-2,
  .gallery-cols-3,
  .gallery-cols-4 { grid-template-columns: 1fr; }
}

/* Gallery stránkovanie */
.gallery-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.gallery-page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.gallery-page-btn:hover,
.gallery-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ============================================
   JOOMLA KONTAKTNÁ STRÁNKA (com_contact)
   ============================================ */

/* 2-stĺpcový layout: formulár vľavo, info vpravo */
.com-contact.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  align-items: start;
}

/* Nadpis formulára + samotný formulár → stĺpec 1 */
.com-contact.contact > h2:first-child,
.com-contact__form {
  grid-column: 1;
}

/* Nadpis doplnkových info → stĺpec 2, riadok 1 */
.com-contact__form ~ h2 {
  grid-column: 2;
  grid-row: 1;
}

/* Doplnkové info → stĺpec 2, riadok 2 */
.com-contact__miscinfo {
  grid-column: 2;
  grid-row: 2;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .com-contact.contact {
    grid-template-columns: 1fr;
  }
  .com-contact.contact > *,
  .com-contact__form ~ h2,
  .com-contact__miscinfo {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* Štýlovanie Joomla formulárových prvkov */
.com-contact .control-group {
  margin-bottom: 1.25rem;
}

.com-contact .control-label label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.com-contact .field-spacer {
  display: none;
}

.com-contact .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  box-sizing: border-box;
}

.com-contact .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.com-contact textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.com-contact .btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.com-contact .btn-primary:hover {
  background: var(--primary-dark, #0a3575);
  transform: translateY(-1px);
}

/* Doplnkové info - dl list */
.com-contact__miscinfo .dl-horizontal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.com-contact__miscinfo dt {
  display: none;
}

.com-contact__miscinfo dd {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.7;
}

/* Joomla legend (Odoslať e-mail) - skryť */
.com-contact fieldset legend {
  display: none;
}

.com-contact fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
