.hero-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 500;
}

.hero-container.sticky-end {
  position: relative;
  height: 100vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: flex-start;
  will-change: transform;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-slide .hero-content {
  position: absolute;
  top: 50%;
  left: 13%;
  transform: translateY(-50%);
  z-index: 1;
  max-width: 700px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slide .hero-content h1 {
  font-size: 7rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-slide .hero-content p {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.6;
}

.hero-slide .hero-content .hero-button {
  display: inline-block;
  padding: 14px 36px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  text-decoration: none;
}

.hero-slide .hero-content .hero-button:hover {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
}

.preview {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.preview img {
  width: 70px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.preview img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.preview img.active {
  border-color: #fff;
  opacity: 1;
}

main {
  margin-top: 0;
  z-index: 1;
}

.offer .aurora-mesh {
  background: radial-gradient(circle, var(--accent-1), var(--accent-2));
  top: -200px;
  right: -200px;
}

.aurora-mesh-2 {
  background: radial-gradient(circle, var(--accent-2), #e879f9);
  bottom: -200px;
  left: -200px;
}

.aurora-mesh-3 {
  background: radial-gradient(circle, #e879f9, var(--accent-1));
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.aurora-mesh-4 {
  background: radial-gradient(circle, var(--accent-1), #e879f9);
  top: -150px;
  right: -150px;
}

section.offer {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  transition: background 0.5s ease;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  cursor: default;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 191, 255, 0.2);
  box-shadow: 0 20px 60px var(--shadow-card);
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.12), rgba(148, 201, 74, 0.12));
  border: 1px solid var(--border-card);
}

.bento-icon i {
  font-size: 1.5rem;
  color: var(--accent-1);
}

.bento-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.bento-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.bento-number {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-primary);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

[data-theme="light"] .bento-number {
  opacity: 0.06;
}

.it-solutions-section {
  width: 100%;
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-secondary);
  transition: background 0.5s ease;
}

.it-solutions-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.it-text {
  flex: 1 1 500px;
  max-width: 600px;
}

.it-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.it-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.it-stats-row {
  display: flex;
  gap: 3rem;
}

.it-mini-stat {
  display: flex;
  flex-direction: column;
}

.it-mini-stat strong {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.it-mini-stat span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.it-image {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  position: relative;
}

.it-image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.it-image-frame img {
  width: 100%;
  max-width: 600px;
  border-radius: 24px;
  display: block;
  transition: transform 0.6s ease;
}

.it-image-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

section.programs {
  padding: 8rem 2rem;
  background: var(--bg-primary);
  transition: background 0.5s ease;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.program-card {
  position: relative;
  display: block;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.program-card:hover {
  will-change: transform;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.program-card:hover::before { opacity: 1; }
.program-card:hover::after { opacity: 1; }

.program-card:hover {
  border-color: var(--card-accent, var(--accent-1));
  box-shadow: 0 25px 80px var(--shadow-card), 0 0 40px rgba(0, 191, 255, 0.08);
}

.program-card-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
}

.program-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.12), rgba(148, 201, 74, 0.12));
  border: 1px solid var(--border-card);
  transition: all 0.4s ease;
}

.program-card-icon i {
  font-size: 1.3rem;
  color: var(--card-accent, var(--accent-1));
  transition: all 0.3s ease;
}

.program-card:hover .program-card-icon {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}

.program-card:hover .program-card-icon i {
  color: #fff;
}

.program-card h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
  transition: color 0.4s ease;
}

.program-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  transition: color 0.4s ease;
}

.program-card:hover h3 { color: #fff; }
.program-card:hover p { color: rgba(255,255,255,0.8); }

.program-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  margin-top: 1.5rem;
  transition: all 0.4s ease;
}

.program-card:hover .program-card-arrow {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
  color: #111;
  transform: translateX(5px);
}

.racunovodstvo-section {
  width: 100%;
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-secondary);
  transition: background 0.5s ease;
}

.racunovodstvo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.racunovodstvo-text {
  flex: 1 1 500px;
  max-width: 650px;
}

.racunovodstvo-text .section-title {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.racunovodstvo-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.racunovodstvo-features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.racunovodstvo-feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.racunovodstvo-feature i {
  color: var(--accent-2);
  font-size: 1.1rem;
}

.racunovodstvo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 36px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.racunovodstvo-btn:hover {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
}

.racunovodstvo-btn i {
  transition: transform 0.3s ease;
}

.racunovodstvo-btn:hover i {
  transform: translateX(4px);
}

.racunovodstvo-visual {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.racunovodstvo-card-stack {
  display: flex;
  gap: 1.5rem;
  perspective: 800px;
}

.racunovodstvo-icon-card {
  width: 120px;
  height: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.racunovodstvo-icon-card i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.racunovodstvo-icon-card:nth-child(1) { transform: translateY(20px); }
.racunovodstvo-icon-card:nth-child(3) { transform: translateY(20px); }

.racunovodstvo-icon-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 191, 255, 0.2);
  box-shadow: 0 20px 60px var(--shadow-card);
}

[data-theme="light"] .racunovodstvo-icon-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
}

[data-theme="light"] .racunovodstvo-icon-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  padding: 1.2rem 2rem;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-card);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.cookie-text i {
  font-size: 1.8rem;
  color: var(--accent-2);
  flex-shrink: 0;
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.cookie-accept {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #111;
}

.cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.cookie-decline {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}

.cookie-decline:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
}

.clients-section {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--clients-bg);
  padding: 6rem 2rem;
  transition: background 0.5s ease;
  overflow: hidden;
}

.logos-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  opacity: 0.15;
}

.logos-background img {
  position: absolute;
  width: 90px;
  filter: var(--logo-filter);
  animation: floatLogo 20s ease-in-out infinite;
}

@keyframes floatLogo {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
  25% { transform: translate(25px, -30px) rotate(3deg); opacity: 0.8; }
  50% { transform: translate(-15px, 20px) rotate(-3deg); opacity: 0.7; }
  75% { transform: translate(30px, 15px) rotate(2deg); opacity: 0.6; }
  100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
}

.logos-background img:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.logos-background img:nth-child(2) { top: 20%; left: 25%; animation-delay: 1.5s; }
.logos-background img:nth-child(3) { top: 35%; left: 70%; animation-delay: 3s; }
.logos-background img:nth-child(4) { top: 50%; left: 40%; animation-delay: 4.5s; }
.logos-background img:nth-child(5) { top: 65%; left: 15%; animation-delay: 6s; }
.logos-background img:nth-child(6) { top: 80%; left: 55%; animation-delay: 7.5s; }
.logos-background img:nth-child(7) { top: 15%; left: 80%; animation-delay: 9s; }
.logos-background img:nth-child(8) { top: 60%; left: 85%; animation-delay: 10.5s; }

.clients-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  width: 100%;
}

.clients-content .section-tag {
  margin-bottom: 3rem;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-block {
  text-align: left;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.stat-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px var(--shadow-card);
  border-color: rgba(0, 191, 255, 0.15);
}

.stat-number {
  display: flex;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.stat-number .counter-value {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-number .counter-suffix {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.stat-bar {
  width: 100%;
  height: 4px;
  background: var(--border-card);
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-block:hover .stat-bar-fill,
.clients-content.visible .stat-bar-fill {
  width: var(--fill-width, 80%);
}

@media (max-width: 1024px) {
  .it-solutions-content { text-align: center; gap: 2rem; }
  .it-text h1 { font-size: 2.2rem; }
  .it-stats-row { justify-content: center; }
  .it-image-frame img { max-width: 90%; }
  .racunovodstvo-content { text-align: center; gap: 2rem; }
  .racunovodstvo-text { max-width: 100%; }
  .racunovodstvo-features { align-items: center; }
  .racunovodstvo-card-stack { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-slide .hero-content h1 { font-size: 3.5rem; }
  .hero-slide .hero-content p { font-size: 1.2rem; }
  .hero-slide .hero-content { left: 5%; max-width: 90%; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { grid-row: span 1; }
  .bento-wide { grid-column: span 1; }
  section.offer { padding: 5rem 1rem; }
  section.programs { padding: 5rem 1.5rem; }
  .clients-section { min-height: auto; padding: 5rem 1rem; }
  .stats-container { grid-template-columns: 1fr; }
  .stat-number .counter-value { font-size: 2.5rem; }
  .stat-number .counter-suffix { font-size: 1.8rem; }
  .cookie-content { flex-direction: column; text-align: center; gap: 1rem; }
  .cookie-text { flex-direction: column; gap: 0.5rem; }
  .cookie-banner { padding: 1rem 1.5rem 1.5rem; }
}

@media (max-width: 600px) {
  .it-text h1 { font-size: 1.8rem; }
  .it-text p { font-size: 1rem; }
  .it-stats-row { gap: 2rem; }
  .it-mini-stat strong { font-size: 2rem; }
  .racunovodstvo-section { padding: 5rem 1.5rem; }
  .racunovodstvo-text .section-title { font-size: 2rem; }
  .racunovodstvo-text p { font-size: 1rem; }
  .racunovodstvo-icon-card { width: 90px; height: 110px; }
  .racunovodstvo-icon-card i { font-size: 2rem; }
  .racunovodstvo-card-stack { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero-slide .hero-content h1 { font-size: 2.5rem; }
  .hero-slide .hero-content p { font-size: 1.05rem; }
}
