/* ===== MODERN DESIGN SYSTEM ===== */
:root {
  /* Цветовая палитра */
  --bg: #0a0c10;
  --bg-gradient: linear-gradient(135deg, #0a0c10 0%, #1a1d29 50%, #0f1115 100%);
  --panel: #1a1d29;
  --panel-2: #151922;
  --panel-hover: #23273a;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --muted: #94a3b8;

  /* Брендовые цвета - улучшенная палитра */
  --brand: #4361ee;      /* Более насыщенный синий */
  --brand-2: #3a0ca3;    /* Темно-фиолетовый */
  --brand-3: #7209b7;    /* Фиолетовый */
  --accent: #f72585;     /* Ярко-розовый акцент */
  --accent-2: #4cc9f0;   /* Голубой акцент */
  --success: #4ade80;    /* Зеленый */
  --error: #f87171;      /* Красный */

  /* Улучшенные градиенты */
  --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --gradient-panel: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(67, 97, 238, 0.15) 0%, rgba(58, 12, 163, 0.15) 100%);

  /* Размеры и отступы */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Тени */
  --shadow: 0 20px 40px rgba(0,0,0,.4);
  --shadow-lg: 0 25px 50px rgba(0,0,0,.5);
  --shadow-glow: 0 0 40px rgba(67, 97, 238, 0.25);
  --shadow-brand: 0 8px 32px rgba(67, 97, 238, 0.4);

  /* Анимации */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

/* ===== ENHANCED ANIMATIONS FOR LIVELY HOMEPAGE ===== */

/* Page load animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px) rotateY(0deg);
  }
  50% {
    transform: translateY(-15px) rotateY(5deg);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-text-reveal {
  animation: textReveal 1.2s ease-out;
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.rotate-animation {
  animation: rotate 3s linear infinite;
}

.bounce-animation {
  animation: bounce 2s infinite;
}

.float-animation {
  animation: floatUp 3s ease-in-out infinite;
}

.glow-text {
  animation: glow 2s ease-in-out infinite;
}

.floating-card {
  animation: cardFloat 4s ease-in-out infinite;
}

/* Hover animations */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.1);
}

/* Enhanced hero animations */
.hero-badge {
  animation-delay: 0.2s;
}

.hero-title {
  animation-delay: 0.4s;
}

.hero-description {
  animation-delay: 0.6s;
}

.hero-actions {
  animation-delay: 0.8s;
}

.hero-features {
  animation-delay: 1s;
}

.hero-visual {
  animation-delay: 0.5s;
}

/* Stats counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat {
  animation: countUp 0.8s ease-out;
}

.stat:nth-child(1) { animation-delay: 0.1s; }
.stat:nth-child(2) { animation-delay: 0.2s; }
.stat:nth-child(3) { animation-delay: 0.3s; }
.stat:nth-child(4) { animation-delay: 0.4s; }

/* Portfolio card stagger animation */
.showcase-card {
  animation: slideUp 0.6s ease-out;
}

.showcase-card:nth-child(1) { animation-delay: 0.1s; }
.showcase-card:nth-child(2) { animation-delay: 0.2s; }
.showcase-card:nth-child(3) { animation-delay: 0.3s; }

/* Process timeline animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.process-step:nth-child(odd) {
  animation: slideInLeft 0.6s ease-out;
}

.process-step:nth-child(even) {
  animation: slideInRight 0.6s ease-out;
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }
.process-step:nth-child(4) { animation-delay: 0.8s; }

/* Review cards animation */
.review-card {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

/* Scroll-triggered animations */
.section {
  animation: fadeIn 0.8s ease-out;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced decorative elements */
.decorative-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--accent);
  animation: sparkle-animation 3s infinite;
}

.sparkle-1 {
  top: 15%;
  left: 25%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 70%;
  left: 80%;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 40%;
  left: 70%;
  animation-delay: 2s;
}

@keyframes sparkle-animation {
  0%, 100% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }
}

.floating-emoji {
  position: absolute;
  font-size: 24px;
  opacity: 0.8;
  animation: float-emoji 8s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.emoji-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.emoji-2 {
  top: 60%;
  left: 85%;
  animation-delay: 2s;
}

.emoji-3 {
  top: 80%;
  left: 25%;
  animation-delay: 4s;
}

.emoji-4 {
  top: 30%;
  left: 80%;
  animation-delay: 6s;
}

@keyframes float-emoji {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(10deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-10deg);
  }
}

/* Новые декоративные формы */
.floating-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.2;
  animation: morph-shape 15s infinite ease-in-out;
  filter: blur(2px);
}

.shape-1 {
  top: 10%;
  left: 10%;
  width: 40px;
  height: 40px;
  background: var(--brand);
  animation-delay: 0s;
}

.shape-2 {
  top: 75%;
  right: 15%;
  width: 30px;
  height: 30px;
  background: var(--accent);
  animation-delay: 3s;
}

.shape-3 {
  bottom: 20%;
  left: 20%;
  width: 25px;
  height: 25px;
  background: #f59e0b;
  animation-delay: 6s;
}

@keyframes morph-shape {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    transform: rotate(90deg) scale(1.2);
  }
  50% {
    border-radius: 30% 30% 70% 70% / 70% 70% 30% 30%;
    transform: rotate(180deg) scale(0.8);
  }
  75% {
    border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    transform: rotate(270deg) scale(1.1);
  }
}

/* Пульсирующие круги */
.pulse-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.3;
  animation: pulse-circle 4s infinite ease-in-out;
}

.circle-1 {
  top: 40%;
  right: 20%;
  width: 60px;
  height: 60px;
  border-color: var(--brand);
  animation-delay: 0s;
}

.circle-2 {
  bottom: 30%;
  left: 40%;
  width: 40px;
  height: 40px;
  border-color: var(--accent);
  animation-delay: 2s;
}

@keyframes pulse-circle {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

/* Эффект глубины */
.depth-effect {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(67, 97, 238, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 50% 20%, rgba(247, 37, 133, 0.1) 0%, transparent 25%);
  opacity: 0.7;
  animation: depth-shift 20s infinite linear;
  pointer-events: none;
}

@keyframes depth-shift {
  0% {
    background-position: 
      30% 30%,
      70% 70%,
      50% 20%;
  }
  25% {
    background-position: 
      35% 35%,
      65% 65%,
      45% 25%;
  }
  50% {
    background-position: 
      40% 30%,
      60% 70%,
      55% 15%;
  }
  75% {
    background-position: 
      35% 25%,
      65% 75%,
      45% 25%;
  }
  100% {
    background-position: 
      30% 30%,
      70% 70%,
      50% 20%;
  }
}

/* Enhanced floating elements */
.floating-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.floating-element:hover {
  animation-duration: 2s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(-10px) rotate(-5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Стили для SVG иконок */
.furniture-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
  animation: icon-rotate 8s linear infinite;
}

@keyframes icon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.chair-icon {
  color: #3b82f6; /* Синий цвет для стула */
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation-delay: 0s;
}

.bed-icon {
  color: #8b5cf6; /* Фиолетовый цвет для кровати */
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  animation-delay: 1s;
}

.cabinet-icon {
  color: #f59e0b; /* Оранжевый цвет для шкафа */
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  animation-delay: 2s;
}

.floating-element:hover .furniture-icon {
  transform: scale(1.3) rotate(15deg);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)) brightness(1.3);
}

.element-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.element-2 {
  top: 50%;
  right: 20%;
  animation-delay: 1s;
}

.element-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
}

.hero {
  min-height: 90vh; /* Further reduced height */
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible; /* Changed from hidden to visible to prevent clipping */
  padding: 20px 0 20px; /* Reduced top padding to move hero higher */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.badge-icon {
  animation: sparkle 2s infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 24px 0;
  color: var(--text);
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-brand);
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(67, 97, 238, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  opacity: 0.1;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.feature-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 400px;
  height: 500px;
  background: var(--gradient-panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  position: relative;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.floating-element:hover {
  animation-duration: 2s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(-10px) rotate(-5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Улучшенные анимации для плавающих элементов */
.floating-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.floating-element:hover {
  animation-duration: 2s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

/* Стили для SVG иконок */
.furniture-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
  animation: icon-rotate 8s linear infinite;
}

@keyframes icon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.chair-icon {
  color: #3b82f6; /* Синий цвет для стула */
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation-delay: 0s;
}

.bed-icon {
  color: #8b5cf6; /* Фиолетовый цвет для кровати */
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  animation-delay: 1s;
}

.cabinet-icon {
  color: #f59e0b; /* Оранжевый цвет для шкафа */
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  animation-delay: 2s;
}

.floating-element:hover .furniture-icon {
  transform: scale(1.3) rotate(15deg);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)) brightness(1.3);
}

.element-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.element-2 {
  top: 50%;
  right: 20%;
  animation-delay: 1s;
}

.element-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
}

/* Process Timeline */
.delivery-hero {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-brand);
}

.step-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ===== ENHANCED STATISTICS SECTION ===== */
.stats-hero {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.stats-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.03) 0%, 
    rgba(6, 182, 212, 0.03) 50%, 
    rgba(139, 92, 246, 0.03) 100%);
  pointer-events: none;
}

.stats-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.badge-icon {
  font-size: 16px;
  animation: pulse 2s infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stats-enhanced {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 60px 0;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.stat-card {
  background: linear-gradient(145deg, 
    var(--panel) 0%, 
    var(--panel-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

/* Beautiful background glow on hover */
.stat-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.3) 0%, 
    rgba(59, 130, 246, 0.2) 50%, 
    rgba(6, 182, 212, 0.3) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s ease;
  filter: blur(20px);
}

.stat-card:hover::after {
  opacity: 0.25;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(145deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    var(--panel-hover) 50%, 
    rgba(59, 130, 246, 0.06) 100%);
}

.stat-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  transition: opacity 0.4s ease;
}

.stat-card:hover .stat-background {
  opacity: 0.1;
}

.background-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
  animation: patternFloat 8s ease-in-out infinite;
}

@keyframes patternFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

.stat-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.stat-icon-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  flex-shrink: 0;
}

.stat-icon {
  font-size: 30px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(6deg);
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.9) 0%, 
    rgba(59, 130, 246, 0.8) 50%, 
    rgba(6, 182, 212, 0.9) 100%);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4),
              0 0 20px rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

.icon-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.4s ease;
}

.stat-card:hover .icon-glow {
  opacity: 0.4;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.stat-data {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  gap: 4px;
  flex-shrink: 0;
}

.num {
  font-size: 48px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
  position: relative;
  letter-spacing: -0.5px;
}

.stat-card:hover .num {
  transform: scale(1.05);
  background: linear-gradient(135deg, 
    #8b5cf6 0%, 
    #3b82f6 30%, 
    #06b6d4 60%, 
    #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.5));
}

.stat-card:hover .label {
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.stat-card:hover .stat-description {
  color: rgba(203, 213, 225, 0.9);
  transform: translateY(-1px);
}

.num-suffix {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

.label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  text-align: center;
  opacity: 0.9;
  flex-shrink: 0;
}

.stat-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  text-align: center;
  opacity: 0.8;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-enhanced {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-top: auto;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 6px;
  width: 0;
  transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
  position: relative;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  transform: translateX(-100%);
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.progress-glow {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  bottom: -2px;
  background: var(--gradient-brand);
  border-radius: 5px;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s ease;
}

.stat-card:hover .progress-glow {
  opacity: 0.6;
}

.stat-sparkle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 400px;
  height: 500px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  animation: glow-pulse 3s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.5), 0 0 40px rgba(67, 97, 238, 0.3);
  }
  100% {
    box-shadow: 0 0 30px rgba(114, 9, 183, 0.7), 0 0 60px rgba(58, 12, 163, 0.5);
  }
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  position: relative;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 20%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 15%);
  opacity: 0.3;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Добавим декоративные элементы */
.hero-card::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: orbit 15s linear infinite;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

.hero-card .orbit-dot {
  position: absolute;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* ===== СТАТИСТИКА ===== */
.stats {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  top: 20px;
  right: 20px;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

/* Enhanced decorative elements */
.decorative-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--accent);
  animation: sparkle-animation 3s infinite;
}

.sparkle-1 {
  top: 15%;
  left: 25%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 70%;
  left: 80%;
  animation-delay: 1s;
}

.sparkle-3 {
  top: 40%;
  left: 70%;
  animation-delay: 2s;
}

@keyframes sparkle-animation {
  0%, 100% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1) translateY(-20px);
  }
}

.floating-emoji {
  position: absolute;
  font-size: 24px;
  opacity: 0.8;
  animation: float-emoji 8s infinite ease-in-out;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.emoji-1 {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.emoji-2 {
  top: 60%;
  left: 85%;
  animation-delay: 2s;
}

.emoji-3 {
  top: 80%;
  left: 25%;
  animation-delay: 4s;
}

.emoji-4 {
  top: 30%;
  left: 80%;
  animation-delay: 6s;
}

@keyframes float-emoji {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(10deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-10deg);
  }
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

/* Enhanced floating elements */
.floating-element {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.floating-element:hover {
  animation-duration: 2s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(5deg);
  }
  66% {
    transform: translateY(-10px) rotate(-5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Стили для SVG иконок */
.furniture-icon {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
  animation: icon-rotate 8s linear infinite;
}

@keyframes icon-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.chair-icon {
  color: #3b82f6; /* Синий цвет для стула */
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  animation-delay: 0s;
}

.bed-icon {
  color: #8b5cf6; /* Фиолетовый цвет для кровати */
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  animation-delay: 1s;
}

.cabinet-icon {
  color: #f59e0b; /* Оранжевый цвет для шкафа */
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  animation-delay: 2s;
}

.floating-element:hover {
  animation-duration: 2s;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

/* Удалены стили для SVG иконок, так как они больше не используются */
.element-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.element-2 {
  top: 50%;
  right: 20%;
  animation-delay: 1s;
}

.element-3 {
  bottom: 20%;
  left: 30%;
  animation-delay: 2s;
}

.stat-card:hover .sparkle {
  animation-duration: 1.5s;
}

/* Specific card colors */
.stat-clients:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(16, 185, 129, 0.15);
}

.stat-projects:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(59, 130, 246, 0.15);
}

.stat-experience:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(139, 92, 246, 0.15);
}

.stat-delivery:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3),
              0 0 40px rgba(245, 158, 11, 0.15);
}

.stats-footer {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.stats-highlight {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Interactive highlight items */
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.highlight-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.highlight-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Улучшенная анимация появления карточек */
.stat-card {
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Улучшенная анимация частиц */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  opacity: 0;
  animation: enhancedSparkle 4s ease-in-out infinite;
  box-shadow: 0 0 10px currentColor;
}

@keyframes enhancedSparkle {
  0%, 100% {
    opacity: 0;
    transform: translateY(0px) scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1.2) rotate(180deg);
  }
}

/* ===== ADDITIONAL SPARKLE AND SHIMMER EFFECTS ===== */
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(300%) rotate(45deg); }
}

.shimmer-effect::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}

/* Enhanced stat card interaction */
.stat-card {
  background: linear-gradient(145deg,
    var(--panel) 0%,
    var(--panel-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  box-shadow: var(--shadow);
}

/* Floating particles background */
.stats-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 60px 60px, 40px 40px;
  background-position: 0 0, 30px 30px, 15px 15px;
  animation: floatingParticles 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatingParticles {
  0% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-20px) translateX(10px); }
  66% { transform: translateY(-10px) translateX(-5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

/* Pulsing glow effect for numbers */
.num {
  font-size: 48px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
  position: relative;
  letter-spacing: -0.5px;
}

.stats-footer {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.stats-highlight {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Interactive highlight items */
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.highlight-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.highlight-text {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Улучшенная анимация появления карточек */
.stat-card {
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(50px);
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Улучшенная анимация частиц */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  opacity: 0;
  animation: enhancedSparkle 4s ease-in-out infinite;
  box-shadow: 0 0 10px currentColor;
}

@keyframes enhancedSparkle {
  0%, 100% {
    opacity: 0;
    transform: translateY(0px) scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-30px) scale(1.2) rotate(180deg);
  }
}

/* ===== ADDITIONAL SPARKLE AND SHIMMER EFFECTS ===== */
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(300%) rotate(45deg); }
}

.shimmer-effect::after {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}

.highlight-item {
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.highlight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 100%);
  transition: left 0.3s ease;
}

.highlight-item:hover::before {
  left: 100%;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Glow effect */
.num {
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s ease;
  position: relative;
}

.num::after {
  content: attr(data-count);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.stat-card:hover .num::after {
  opacity: 0.3;
  animation: pulseGlow 2s infinite;
}

/* Interactive highlight items */
.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.highlight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 100%);
  transition: left 0.3s ease;
}

.highlight-item:hover::before {
  left: 100%;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.highlight-item::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 100%);
  transition: left 0.5s ease;
}

.highlight-item:hover::before {
  left: 100%;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.highlight-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
  transition: transform 0.3s ease;
}

.highlight-item:hover .highlight-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Stats badge animation */
.stats-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.stats-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%);
  transform: translateX(-100%);
  animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.badge-icon {
  font-size: 16px;
  animation: pulse 2s infinite;
}

/* Enhanced responsive design */
@media (max-width: 1200px) {
  .stats-enhanced {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 0 15px;
  }

  .stat-card {
    height: 190px;
    padding: 28px 20px;
  }
}

@media (max-width: 1024px) {
  .stats-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
  }

  .stat-card {
    height: 200px;
    padding: 30px 24px;
  }

  .num {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .stats-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 10px;
  }

  .stat-card {
    padding: 24px 18px;
    height: 180px;
  }

  .num {
    font-size: 32px;
  }

  .label {
    font-size: 14px;
  }

  .stat-description {
    font-size: 11px;
  }

  .stat-icon {
    font-size: 26px;
    width: 48px;
    height: 48px;
  }

  .stat-icon-wrapper {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .stats-enhanced {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px auto;
  }

  .stat-card {
    padding: 28px 20px;
    height: 180px;
    max-width: 320px;
    margin: 0 auto;
  }

  .num {
    font-size: 30px;
  }

  .label {
    font-size: 14px;
  }

  .stat-description {
    font-size: 11px;
  }
}

.old-stat {
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.num {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 8px;
  display: block;
}

.label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: var(--gradient-brand);
  width: 0;
  transition: width 2s ease;
}

/* Progress bar animation */
.animate-progress {
  animation: progressFill 2s ease-out 0.5s both;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ===== ENHANCED WORKS PAGE STYLES ===== */
.works-hero {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 60px;
}

.works-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.filter-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.tab-icon {
  font-size: 16px;
}

/* Enhanced Portfolio Grid */
.portfolio-enhanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* Улучшенная сетка для равномерного распределения */
@media (min-width: 1200px) {
  .portfolio-enhanced-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .portfolio-enhanced-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .portfolio-enhanced-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px; /* Ensure consistent height */
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.portfolio-card:hover .image-overlay {
  opacity: 1;
}

.quick-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.quick-view-btn:hover {
  background: white;
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.badge-category {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

.badge-featured {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

.portfolio-card .card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portfolio-card .card-main-content {
  flex: 1;
}

/* Default card title styles */
.portfolio-card .card-title,
.showcase-card .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  position: static;
}

.portfolio-card .card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px 0;
  min-height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-details {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.detail-icon {
  font-size: 14px;
}

/* Card Footer */
.showcase-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.details-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.details-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(4px);
}

.quick-view-btn:hover {
  background: white;
  transform: scale(1.05);
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.view-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(4px);
}

.btn-arrow {
  transition: var(--transition);
}

.view-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.card-badges {
}

/* Portfolio CTA */
.works-cta {
  background: var(--gradient-panel);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.works-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px 0;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.btn-icon {
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-card {
    width: 100%;
    max-width: 350px;
    height: 400px;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-enhanced-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: center;
  }

  .works-hero {
    padding: 40px 30px;
  }

  .delivery-hero,
  .stats-hero {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-btn {
    justify-content: center;
  }
}
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-gradient);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Improved scroll offset for anchor links */
  overflow-x: hidden;
  padding-top: 50px; /* Optimal padding - not too much, not too little */
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* ===== УТИЛИТЫ ===== */
.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
  position: relative;
}

.section + .section {
  margin-top: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
  margin: 0;
}

.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 84px;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: saturate(1.2) blur(20px);
  -webkit-backdrop-filter: saturate(1.2) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(10, 12, 16, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  height: 70px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-inner {
  height: 70px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 20px;
  flex-shrink: 0;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-brand);
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  position: relative;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Индикатор активной страницы */
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
  animation: indicator-pulse 2s infinite;
}

@keyframes indicator-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.8);
  }
}

.nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
  animation: indicator-grow 0.3s ease-out;
}

@keyframes indicator-grow {
  from {
    width: 0;
  }
  to {
    width: 40%;
  }
}

/* Улучшенный эффект при наведении */
.nav a {
  position: relative;
  transition: color 0.3s ease;
}

.nav a::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 3px;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

.nav a:hover::before {
  width: 40%;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
}

/* Right side container for language selector and CTA */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-brand);
  color: white;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-brand);
  border: 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.nav-cta:hover::before {
  transform: translateX(100%);
}

/* ===== BEAUTIFUL LANGUAGE SELECTOR ===== */
.language-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  min-width: 80px;
  justify-content: space-between;
}

.lang-current:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.lang-arrow {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.language-selector.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 160px;
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow: hidden;
}

.language-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.lang-option.active {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--brand);
}

.lang-option.active::before {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.lang-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.lang-option:hover .lang-name {
  color: var(--brand);
}

.lang-option.active .lang-name {
  color: var(--brand);
  font-weight: 600;
}

/* Language selector animation */
@keyframes langFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.language-selector.open .lang-dropdown {
  animation: langFadeIn 0.3s ease-out;
}

/* Language selector glow effect */
.lang-current::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-brand);
  border-radius: 14px;
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.3s ease;
}

.language-selector.open .lang-current::after {
  opacity: 0.3;
}

/* Responsive language selector */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav-right {
    gap: 12px;
  }

  .language-selector {
    order: -1;
  }

  .lang-current {
    padding: 6px 10px;
    min-width: 70px;
  }

  .lang-text {
    font-size: 12px;
  }

  .lang-flag {
    font-size: 14px;
  }

  .lang-dropdown {
    border-radius: 12px;
    min-width: 140px;
  }

  .lang-option {
    padding: 10px 14px;
  }

  .lang-name {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .nav-right {
    gap: 8px;
  }

  .language-selector {
    order: -1;
  }

  .lang-current {
    padding: 6px 8px;
    min-width: 60px;
  }

  .lang-text {
    display: none;
  }

  .lang-flag {
    font-size: 18px;
  }

  .lang-dropdown {
    min-width: 120px;
  }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(50px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.modal-body {
  padding: 24px 28px 28px;
}

.modal-subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ===== ФОРМЫ ===== */
.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-loading,
.btn-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-result {
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.form-result.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.form-result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 0; /* Removed all padding to move hero higher */
  margin-top: -20px; /* Negative margin to pull hero up */
}

/* ===== ENHANCED PORTFOLIO SHOWCASE ===== */
.portfolio-hero {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.portfolio-hero > * {
  position: relative;
  z-index: 1;
}

.portfolio-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.portfolio-view-all:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.arrow {
  transition: var(--transition);
}

.portfolio-view-all:hover .arrow {
  transform: translateX(4px);
}

/* Portfolio Showcase Grid */
.portfolio-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 60px 0 40px;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: auto;
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Ensure minimum height for consistent layout */
}

.showcase-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

/* Image Wrapper */
.card-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.showcase-card:hover .showcase-image {
  transform: scale(1.08);
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.showcase-card:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition);
}

.showcase-card:hover .overlay-content {
  transform: translateY(0);
}

.quick-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.quick-preview:hover {
  background: white;
  transform: scale(1.05);
}

.preview-icon {
  font-size: 16px;
}

/* Category Badge */
.card-category {
  position: absolute;
  top: 16px;
  right: 16px;
}

.category-badge {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* Card Content */
.showcase-card .card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  margin-bottom: 16px;
}

.card-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-main-content {
  flex: 1;
}

.showcase-card .card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

/* Card meta styles */
.card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* Ensure titles in new card structure are properly positioned */
.card-main-content .card-title,
.card-content .card-title {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-shadow: none !important;
}

.meta-date,
.meta-material {
  display: flex;
  align-items: center;
  gap: 4px;
}

.showcase-card .card-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px 0;
  min-height: 42px; /* Use min-height instead of fixed height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Allow 3 lines */
  -webkit-box-orient: vertical;
}

/* Card Footer */
.showcase-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.price-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.showcase-card .price-unit {
  color: white; /* Made currency white as requested */
  font-weight: 600;
  font-size: 16px;
  align-self: center;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.details-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.details-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(4px);
}

.btn-arrow {
  transition: var(--transition);
}

.details-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Portfolio CTA */
.portfolio-cta {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.cta-text {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0 0 20px 0;
}

.btn-icon {
  font-size: 16px;
}

/* No Works State */
.no-works {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-works h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-hero {
    padding: 40px 30px;
  }

  .portfolio-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0 30px;
  }

  .showcase-card .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .details-btn {
    justify-content: center;
  }

  .portfolio-cta {
    padding: 30px 20px;
  }

  /* Fix for works page cards */
  .portfolio-enhanced-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    padding: 30px 20px;
  }

  .showcase-card .card-content {
    padding: 20px;
  }

  .card-meta {
    flex-direction: column;
    gap: 8px;
  }

  /* Ensure our button styles are consistent on mobile */
  .portfolio-card .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .view-btn {
    justify-content: center;
    width: 100%;
  }
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
}

.feature .icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-brand);
}

.feature .icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

.feature h4 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
  transition: var(--transition);
}

.feature:hover h4 {
  color: var(--brand);
}

.feature p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  transition: var(--transition);
  font-size: 16px;
}

.feature:hover p {
  color: var(--text);
}

/* ===== СТАТИСТИКА ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.stat {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.stat:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.08);
}

.stat::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59,130,246,0.15), transparent 70%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.stat:hover::before {
  transform: scale(1);
}

.stat .num {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.stat .label {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.progress {
  margin-top: 18px;
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.progress .bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 8px;
  transition: width 0.2s linear;
}

/* ===== ПОРТФОЛИО ===== */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  background: var(--gradient-panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(59,130,246,.35), rgba(126,240,208,.25), rgba(199,125,255,.25));
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,.14);
}

.portfolio-item:hover::before {
  opacity: .25;
}

.portfolio-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

/* Portfolio item styles (old card system) */
.portfolio-item .card-title {
  position: absolute;
  left: 16px;
  bottom: 64px;
  z-index: 2;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0,0,0,.55);
}

/* New card system styles */
.portfolio-card .card-title,
.showcase-card .card-title {
  position: static;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-shadow: none;
}

.card-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: saturate(1.2) blur(6px);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
}

.badge-price {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  color: #f8fbff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(59,130,246,.35), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(255,255,255,.06);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

.badge-price::before {
  content: "💸";
  margin-right: 6px;
}

.badge-price::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.28), rgba(255,255,255,0) 42%);
  opacity: .7;
}

.portfolio-item:hover .badge-price {
  box-shadow: 0 14px 30px rgba(59,130,246,.45), inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.card-meta {
  color: #e5edffcc;
  font-size: 13px;
}

.card-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.card-tags .badge {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  font-size: 12px;
  padding: 6px 10px;
}

.hover-panel {
  position: absolute;
  inset: 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.35) 40%, rgba(0,0,0,.2));
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-item:hover .hover-panel {
  opacity: 1;
}

.hover-desc {
  color: #dbeafe;
  max-width: 70%;
  line-height: 1.45;
  font-size: 14px;
}

.hover-meta {
  margin-top: 8px;
  font-size: 0.9em;
  opacity: 0.8;
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ===== ОТЗЫВЫ - НОВЫЙ СОВРЕМЕННЫЙ ДИЗАЙН ===== */
.reviews {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.reviews .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 30px;
}

.reviews-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 140px;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 8px;
}

.stars-display {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.star {
  font-size: 20px;
  color: #fbbf24;
  transition: var(--transition);
}

.star.filled {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reviews-container {
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
  margin-bottom: 40px;
}

.reviews-track {
  display: flex;
  gap: 32px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.reviews-track:active {
  cursor: grabbing;
}

.review-card {
  min-width: 380px;
  max-width: 420px;
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.review-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(126, 240, 208, 0.2), rgba(199, 125, 255, 0.2));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.review-card:hover::before {
  opacity: 0.3;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.avatar-wrapper {
  position: relative;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.avatar-initial {
  position: relative;
  z-index: 1;
}

.verified-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  border: 2px solid var(--bg);
}

.verified-icon {
  font-size: 12px;
  color: white;
  font-weight: 900;
}

.client-details {
  flex: 1;
}

.client-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.separator {
  opacity: 0.5;
}

.client-type {
  color: #10b981;
  font-weight: 600;
}

.review-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stars {
  display: flex;
  gap: 2px;
}

.review-content {
  margin-bottom: 24px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px 0;
  font-style: italic;
  position: relative;
}

.review-text::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: -20px;
  font-size: 60px;
  color: var(--brand);
  opacity: 0.3;
  font-family: serif;
}

.review-project {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.helpful-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.helpful-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: translateY(-2px);
}

.helpful-icon {
  font-size: 14px;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.source-icon {
  font-size: 14px;
}

/* Навигация карусели */
.reviews-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-icon {
  font-size: 20px;
  font-weight: 900;
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--brand);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
}

/* Призыв к действию */
.reviews-cta {
  background: var(--gradient-panel);
  border-radius: var(--radius-xl);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.reviews-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-visual {
  position: relative;
  z-index: 1;
}

.trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
}

.trust-icon {
  font-size: 24px;
}

.trust-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Состояние без отзывов */
.no-reviews {
  text-align: center;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  min-width: 100%;
}

.no-reviews-icon {
  font-size: 64px;
  margin-bottom: 24px;
  opacity: 0.6;
}

.no-reviews h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 16px;
}

.no-reviews p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .reviews .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .review-card {
    min-width: 340px;
    max-width: 380px;
    padding: 24px;
  }

  .reviews-cta {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 40px;
  }

  .trust-indicators {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .reviews {
    padding: 60px 0;
  }

  .review-card {
    min-width: 300px;
    max-width: 320px;
    padding: 20px;
  }

  .client-info {
    gap: 12px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .client-name {
    font-size: 16px;
  }

  .review-text {
    font-size: 15px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 16px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .trust-indicators {
    flex-direction: column;
  }
}

.review {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  display: grid;
  gap: 8px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 150px;
  max-height: 250px;
  min-width: 280px;
}

.review::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.review:hover::before {
  left: 100%;
}

.review:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  border-color: rgba(59, 130, 246, 0.3);
}

.review .head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(270deg, var(--brand), var(--brand-2), #ffd166, #ff6b6b, #7ef0d0, #6aa7ff);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite, glowPulse 4s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.review:hover .avatar::before {
  transform: translateX(100%);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(122,209,255,.4), 0 0 14px rgba(126,240,208,.25); }
  50% { box-shadow: 0 0 14px rgba(122,209,255,.6), 0 0 22px rgba(126,240,208,.35); }
}

.avatar:hover {
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 0 20px rgba(122,209,255,.9), 0 0 35px rgba(126,240,208,.6);
}

.review .name {
  font-weight: 800;
  transition: all 0.3s ease;
}

.review:hover .name {
  color: var(--brand);
  transform: translateX(4px);
}

.review .date {
  color: var(--muted);
  font-size: 12px;
  transition: all 0.3s ease;
}

.review:hover .date {
  color: var(--brand-2);
  transform: translateX(4px);
}

.review .body {
  color: var(--text);
  opacity: .9;
  transition: all 0.3s ease;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  font-size: 14px;
}

.review:hover .body {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--text);
}

/* ===== ДОСТАВКА ===== */
.delivery {
  background: var(--gradient-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.delivery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.05;
}

.delivery .section-title {
  margin-bottom: 12px;
}

/* ===== MINI MAP FOR CONTACTS ===== */
.contact-map {
  margin: 15px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  height: 200px;
}

.map-link {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.mini-map {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--radius);
}

.map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: #ff0000;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.map-text {
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.map-link:hover .map-overlay {
  background: rgba(0, 0, 0, 0.9);
}

.map-link:hover .map-text {
  color: var(--brand);
}

/* ===== КОНТАКТЫ ===== */
.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.branch {
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.branch:hover::before {
  transform: scaleX(1);
}

.branch:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  transition: var(--transition-fast);
}

.contact_row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  transition: var(--transition-fast);
}

.contact-row:hover {
  color: var(--text);
}

.contact-row a {
  color: var(--brand);
  font-weight: 600;
}

.contact-row a:hover {
  color: var(--brand-2);
}

/* ===== ФУТЕР ===== */
.footer {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.8), rgba(10, 12, 16, 0.95));
  padding: 30px 0 20px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 20px;
}

.foot-col {
  display: flex;
  flex-direction: column;
}

.foot-col h5 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}

.foot-col a {
  display: block;
  color: var(--muted);
  padding: 4px 0;
  font-size: 14px;
  transition: var(--transition-fast);
}

.foot-col a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.copyright {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-brand);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .review {
    min-width: 260px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .nav {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .review {
    min-width: 240px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Адаптивность модального окна */
  .modal-content {
    width: 95%;
    margin: 20px;
    max-height: calc(100vh - 40px);
  }

  .modal-header {
    padding: 20px 20px 16px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .review {
    min-width: 220px;
  }

  .slide-content {
    padding: 24px 16px;
  }

  .consultation-form {
    gap: 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px; /* Предотвращает zoom на iOS */
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--panel);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-brand);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-2);
}

/* ===== WORKS PAGE & WORK DETAIL STYLES ===== */

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding: 16px 0;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--brand);
  font-weight: 600;
  transition: var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--brand-2);
  transform: translateX(2px);
}

.breadcrumb-separator {
  color: var(--muted);
  font-size: 16px;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* Portfolio All Grid - Works Page */
.portfolio-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

/* Work Detail Page Layout */
.work-detail {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.work-media {
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.image-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.work-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  transition: var(--transition);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.image-zoom-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.image-zoom-btn:hover {
  transform: scale(1.1);
  background: white;
}

.work-info {
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: fit-content;
}

/* Work Header */
.work-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(67, 97, 238, 0.3);
  position: relative;
}

.work-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
}

.work-meta-header {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Enhanced Price Block */
.price-block {
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.03;
}

.price-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
}

.price-currency {
  font-size: 28px;
}

.price-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.price-unit {
  font-size: 24px;
  font-weight: 600;
  color: white; /* Made currency white as requested */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.price-note {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  position: relative;
}

/* Work Description */
.work-description {
  margin-bottom: 32px;
}

.work-description h3 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-description p {
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

/* Specifications Grid */
.specifications {
  margin-bottom: 32px;
}

.specifications h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.spec-item {
  text-align: center;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.spec-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}

.spec-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
  display: block;
}

.spec-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Work Badges */
.work-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.work-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gradient-brand);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: var(--transition);
}

.work-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.work-badge.material {
  background: var(--gradient-accent);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.work-badge.material:hover {
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.work-badge.status {
  background: linear-gradient(135deg, var(--success), #16a34a);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.work-badge.status:hover {
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.badge-icon {
  font-size: 16px;
}

/* Features Grid */
.work-features {
  margin-bottom: 32px;
}

.work-features h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

/* Timeline */
.work-timeline {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-timeline h3 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-brand);
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.timeline-content {
  flex: 1;
  padding-top: 6px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Delivery & Payment Info */
.delivery-payment {
  margin: 32px 0;
  padding: 24px;
  background: var(--gradient-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
}

.delivery-payment h3 {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.delivery-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-info p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Contact Block for Work Detail */
.contact-block {
  margin-top: 32px;
  padding: 24px;
  background: var(--gradient-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-block h4 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.contact-block p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.stats-highlight {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-btn.primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-brand);
}

.contact-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.contact-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Enhanced Portfolio Item for Works Page */
.portfolio-item.enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.enhanced:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-btn {
  padding: 14px 28px;
  background: var(--gradient-brand);
  color: white;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-brand);
  margin-bottom: 12px;
}

.portfolio-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.portfolio-info {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--gradient-panel);
}

.portfolio-title {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

.portfolio-date {
  opacity: 0.8;
}

/* Responsive Design for Works Pages */
@media (max-width: 1024px) {
  .portfolio-all-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .work-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-media {
    position: static;
  }

  .work-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .portfolio-all-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-title {
    font-size: 28px;
  }

  .work-info {
    padding: 24px;
  }

  .work-image {
    height: 300px;
  }

  .specifications {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 20px;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .work-media {
    padding: 16px;
  }

  .work-info {
    padding: 20px;
  }

  .work-image {
    height: 250px;
  }

  .price-block .badge-price {
    font-size: 20px;
    padding: 12px 16px;
  }

  .specifications {
    grid-template-columns: 1fr 1fr;
  }
}