/* --- Čo o nás povedali --- */
.testimonials-wrapper {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 30px 0;
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 40px 0;
  position: relative;
  touch-action: pan-y;
  will-change: transform;
}

.testi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: var(--dark);
  transition: all 0.2s ease;
  z-index: 10;
}

.testi-arrow:hover {
  background: var(--bg-soft);
  color: var(--blue);
  transform: translateY(-50%) scale(1.05);
}

/* Zarovnanie šípok s hlavným containerom (1120px -> polovica 560px) */
.testi-arrow.prev { left: calc(50vw - 560px - 25px); }
.testi-arrow.next { right: calc(50vw - 560px - 25px); }

.testimonial-card {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  opacity: 0.4;
  transform: scale(0.9);
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.testimonial-card.is-center {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.12);
  z-index: 2;
  border-color: var(--blue);
}

.testimonial-stars {
  color: var(--orange);
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
  font-size: 15px;
}

.testimonial-text {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
  color: var(--text);
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-info strong {
  font-size: 15px;
  color: var(--text);
  line-height: 1.2;
}

.testimonial-info span {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Naši zákazníci (Ticker) --- */
.section-clients {
  padding: 60px 0;
  background: var(--surface); 
}

.clients-ticker-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-ticker {
  display: flex;
  align-items: center;
  gap: 50px;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.clients-ticker:hover {
  animation-play-state: paused;
}

.client-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.client-logo i {
  font-size: 28px;
}

.client-logo:hover {
  opacity: 1;
  color: var(--dark);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 25px)); }
}

/* --- Pokročilé Štatistiky (Dashboard / Graph) --- */
.section-stats-advanced {
  background: transparent;
  background-image: radial-gradient(circle at 100% 0%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 0% 100%, rgba(0, 102, 255, 0.08) 0%, transparent 50%);
  padding: 78px 0;
  color: var(--text);
  overflow: hidden;
}

.stats-advanced-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.text-white { color: var(--text) !important; }
.text-white-muted { color: var(--text-muted) !important; }

.growth-chart-wrap {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 30px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-badge {
  color: var(--green);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0, 204, 0, 0.2);
}

.svg-chart-container {
  width: 100%;
  aspect-ratio: 600 / 265;
  position: relative;
}

.advanced-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.chart-line-adv {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-area-adv {
  opacity: 0;
  transition: opacity 2s ease 0.5s;
}

.chart-grid line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 4, 4;
  opacity: 0.6;
}

.chart-grid text,
.chart-labels-x text {
  fill: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
}

.chart-grid text {
  text-anchor: end;
}

.chart-labels-x text {
  text-anchor: middle;
  font-weight: 600;
}

.chart-point-group {
  cursor: crosshair;
}

.chart-point-adv {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 3;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke-width 0.2s ease, r 0.2s ease;
}

.chart-point-adv.active {
  fill: var(--blue);
  stroke: var(--surface);
}

.chart-tooltip rect {
  fill: var(--dark);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(5px);
  pointer-events: none;
}

.chart-tooltip text {
  fill: #ffffff;
  font-size: 12px;
  font-weight: bold;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(5px);
  pointer-events: none;
}

.chart-point-group:hover .chart-tooltip rect,
.chart-point-group:hover .chart-tooltip text {
  opacity: 1;
  transform: translateY(0);
}

.chart-point-group:hover .chart-point-adv {
  stroke-width: 4;
  r: 7px;
}

.svg-chart-container.is-animated .chart-line-adv { stroke-dashoffset: 0; }
.svg-chart-container.is-animated .chart-area-adv { opacity: 1; }
.svg-chart-container.is-animated .chart-point-adv { 
  opacity: 1; 
  transform: scale(1); 
  transition-delay: var(--point-delay, 0s); 
}

.stats-cards-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-adv-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.stat-adv-card:hover {
  transform: translateY(-5px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-adv-card.featured {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
  transform: scale(1.02);
  z-index: 1;
  position: relative;
}

.stat-adv-icon {
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
  margin-bottom: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.stat-adv-card:nth-child(1) .stat-adv-icon { color: var(--blue); }
.stat-adv-card:nth-child(2) .stat-adv-icon { color: var(--green); }
.stat-adv-card:nth-child(3) .stat-adv-icon { color: var(--orange); }
.stat-adv-card:nth-child(4) .stat-adv-icon { color: var(--blue); }

.stat-adv-card.featured .stat-adv-icon {
  transform: scale(1.1);
  color: var(--blue);
}

.stat-adv-number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-adv-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Globálne pomocné utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-14px { margin-top: 14px; }

.uppercase-subtitle {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responzivita --- */
@media (max-width: 1200px) {
  .testi-arrow.prev { left: 15px; }
  .testi-arrow.next { right: 15px; }
}

@media (max-width: 980px) {
  .stats-advanced-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .testi-arrow { display: none; }
  .testimonial-card { width: 280px; }
  .stats-cards-col {
    grid-template-columns: 1fr;
  }
}