/* ============================
   MakeItScript • Enhanced Dynamic CSS
   Modern Design with Performance Optimizations
   ============================ */

/* —— CSS Custom Properties (Enhanced) —— */
:root {
  color-scheme: dark;
  
  /* Enhanced Color Palette */
  --bg: #05070d;
  --txt: #eef1f8;
  --muted: #a9b3c9;
  --brand: #7c4dff;
  --brand-2: #00d4ff;
  --brand-3: #8a2be2;
  --brand-4: #ff6ad5;
  --chip: #101525;
  --chip-brd: #2a3144;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-brd: rgba(255, 255, 255, 0.14);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(5, 9, 18, 0.45);
  --shadow-lg: 0 32px 90px rgba(5, 9, 18, 0.6);
  --ok: #00ffa3;
  --danger: #ff6464;
  --warning: #ffb347;

  /* Enhanced Layout */
  --lead-form-w: 480px;
  --logo-h: 72px;
  --container-max: 1200px;
  --container-padding: max(20px, 4%);
  --section-gap: 120px;

  /* Enhanced Animation */
  --pop: cubic-bezier(0.2, 0.8, 0.2, 1);
  --smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s var(--smooth);
  --transition-slow: 0.4s var(--smooth);

  /* Enhanced Z-index Scale */
  --z-behind: -1;
  --z-background: 0;
  --z-particles: 1;
  --z-tooltip: 2;
  --z-content: 2;
  --z-floating: 5;
  --z-overlay: 10;
  --z-header: 10;
  --z-mobile-menu: 15;
  --z-dropdown: 100;
  --z-notification: 1000;
  --z-modal: 1000;
  --z-emergency: 9999;

  /* Transform Effects */
  --transform-hardware: translateZ(0);
  --transform-hover-lift: translateY(-2px);
  --transform-hover-subtle: translateY(-1px);
  --transform-hover-scale: translateY(-2px) scale(1.02);
  --transform-reset: translateY(0);

  /* Glow Effects */
  --glow-brand: 0 0 30px rgba(124, 77, 255, 0.4);
  --glow-brand-strong: 0 0 50px rgba(124, 77, 255, 0.6);
  --glow-brand-mobile: 0 0 15px rgba(124, 77, 255, 0.4);
  --glow-brand-mobile-strong: 0 0 25px rgba(124, 77, 255, 0.6);
  --glow-blue: 0 0 30px rgba(0, 212, 255, 0.4);
}

/* —— Modern CSS Reset (Enhanced) —— */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Mobile optimizations */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
  -ms-text-size-adjust: 100%;
}

/* Mobile performance optimizations */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--txt);
  background: #0b0f1a;
  overflow-x: hidden;
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Background with Performance - TEMPORARILY DISABLED FOR TESTING */
/* body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-background);
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(106, 44, 255, 0.16) 0%, transparent 60%),
    radial-gradient(1000px 560px at 100% 0%, rgba(0, 212, 255, 0.13) 0%, transparent 55%),
    radial-gradient(800px 600px at 50% 100%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0c1020 0%, #0a0f1b 70%, #090d17 100%);
  backface-visibility: hidden;
  transform: var(--transform-hardware);
  will-change: transform;
} */

/* —— Enhanced Typography —— */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 4vw + 12px, 56px);
  line-height: 1.06;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(26px, 2.5vw + 14px, 36px);
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(20px, 1.8vw + 10px, 28px);
  margin-bottom: 16px;
}

p {
  margin: 0 0 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Enhanced Utility Classes —— */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* —— Enhanced Layout Containers —— */
.container {
  width: min(var(--container-max), 100% - var(--container-padding) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
  position: relative;
}

.grid {
  display: grid;
  gap: 24px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* —— Enhanced Background Effects —— */
#bg-aurora {
  position: fixed;
  inset: -30vh -25vw;
  z-index: var(--z-background);
  pointer-events: none;
  filter: saturate(125%) blur(70px);
  backface-visibility: hidden;
  transform: var(--transform-hardware);
  contain: layout style paint;
}

.orb {
  position: absolute;
  width: 38vmax;
  height: 38vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--brand) 0%, transparent 65%),
              radial-gradient(circle at 70% 70%, var(--brand-2) 0%, transparent 60%);
  translate: var(--px, 0px) var(--py, 0px);
  will-change: translate;
  contain: layout style paint;
}

.o1 {
  left: -8%;
  top: -6%;
  animation: float1 22s infinite ease-in-out;
}

.o2 {
  right: -10%;
  top: -10%;
  background: radial-gradient(circle at 35% 35%, #00e0ff 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, var(--brand-4) 0%, transparent 60%);
  animation: float2 26s infinite ease-in-out;
}

.o3 {
  left: 20%;
  bottom: -8%;
  background: radial-gradient(circle at 30% 30%, var(--brand) 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, #00ffa6 0%, transparent 55%);
  animation: float3 28s infinite ease-in-out;
}

.o4 {
  right: 12%;
  bottom: -12%;
  background: radial-gradient(circle at 30% 30%, var(--brand-2) 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, #ff8abf 0%, transparent 60%);
  animation: float4 30s infinite ease-in-out;
}

/* New Enhanced Background Elements */
.mesh-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(124, 77, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 40%, rgba(138, 43, 226, 0.1) 0%, transparent 35%);
  animation: meshFlow 40s infinite linear;
  opacity: 0.6;
}

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

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    rgba(124, 77, 255, 0.1), 
    rgba(0, 212, 255, 0.1)
  );
  animation: shapeFloat 20s infinite ease-in-out;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 70%;
  animation-delay: -5s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 10%;
  animation-delay: -10s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 80%;
  animation-delay: -15s;
}

/* Enhanced Animations */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8%, 6%) rotate(4deg); }
  66% { transform: translate(-4%, 8%) rotate(-2deg); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-6%, 8%) rotate(-4deg); }
  66% { transform: translate(6%, -4%) rotate(2deg); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(6%, -6%) rotate(3deg); }
  66% { transform: translate(-8%, 4%) rotate(-3deg); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-5%, -8%) rotate(-3deg); }
  66% { transform: translate(7%, 6%) rotate(3deg); }
}

@keyframes meshFlow {
  0%, 100% { transform: translateX(-50px) translateY(-30px); }
  50% { transform: translateX(50px) translateY(30px); }
}

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

#tsparticles {
  position: fixed;
  inset: 0;
  z-index: var(--z-particles);
  pointer-events: none;
}

/* —— Enhanced Typography Utilities —— */
.lead {
  color: var(--muted);
  font-size: clamp(16px, 1vw + 14px, 20px);
  margin: 16px 0 24px;
  line-height: 1.7;
}

.accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

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

.section-title {
  font-size: clamp(26px, 2.5vw + 14px, 40px);
  margin: 0 0 24px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--muted);
  font-size: clamp(16px, 1vw + 14px, 18px);
  margin: 16px auto 0;
  max-width: 600px;
  line-height: 1.6;
}

/* —— Enhanced Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: saturate(140%) blur(15px);
  background: linear-gradient(180deg, 
    rgba(8, 10, 16, 0.85), 
    rgba(8, 10, 16, 0.75) 50%,
    rgba(8, 10, 16, 0.25) 90%, 
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: linear-gradient(180deg, 
    rgba(8, 10, 16, 0.95), 
    rgba(8, 10, 16, 0.85)
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.site-footer {
  padding: 60px 0 20px; /* Reduced bottom padding */
}
.site-footer:after,
.site-footer::after {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  transition: transform var(--transition-normal);
  position: relative;
}

.brand:hover {
  transform: var(--transform-hover-lift);
}

.brand-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.brand-name {
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.slogan {
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  margin-top: 2px;
  opacity: 0.8;
}

.brand-logo {
  width: var(--logo-h);
  height: var(--logo-h);
  object-fit: contain;
  transition: all var(--transition-normal);
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.5));
}

.logo-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.logo-glow.small {
  inset: -5px;
}

.brand:hover .logo-glow {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.4; }
}

.brand.footer-brand {
  font-weight: 600;
  color: var(--txt);
  gap: 12px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.brand-tagline {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.brand-logo--footer {
  width: 32px;
  height: 32px;
}

/* —— Enhanced Navigation —— */
.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width var(--transition-normal);
  border-radius: 1px;
}

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

.nav-link.active .nav-underline {
  width: 100%;
}

/* —— Enhanced Language Switcher —— */
.lang-switch,
.mobile-lang {
  display: flex;
  gap: 6px;
  border: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.lang-btn {
  height: 44px;
  min-width: 54px;
  padding: 0 16px;
  border-radius: 16px; /* Match button style */
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--txt);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.5px;
  /* Glass morphism effect like main buttons */
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
  transform: var(--transform-hover-scale);
  border-color: var(--brand);
  background: var(--glass-hover);
  box-shadow: var(--glow-brand), 0 8px 25px rgba(0, 0, 0, 0.15);
  color: var(--txt);
}

/* Enhanced shine effect for language buttons */
.lang-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.lang-btn:hover::after {
  left: 100%;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0b10;
  border-color: transparent;
  box-shadow: var(--glow-brand-strong);
  font-weight: 800;
  transform: scale(1.05);
}

.lang-btn.active::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: inherit;
  z-index: var(--z-behind);
  opacity: 1;
  animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
  0% { box-shadow: var(--glow-brand); }
  100% { box-shadow: var(--glow-brand-strong); }
}

@keyframes mobileActiveGlow {
  0% { box-shadow: var(--glow-brand-mobile); }
  100% { box-shadow: var(--glow-brand-mobile-strong); }
}

.lang-btn span {
  position: relative;
  z-index: var(--z-particles);
}

/* —— Enhanced Mobile Menu —— */
.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--chip-brd);
  border-radius: 12px;
  background: var(--chip);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.burger:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: var(--transform-hover-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.burger-line {
  width: 20px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.burger[aria-expanded="true"] .burger-line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger[aria-expanded="true"] .burger-line-2 {
  opacity: 0;
  transform: scale(0);
}

.burger[aria-expanded="true"] .burger-line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-slow);
  background: rgba(8, 10, 16, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  z-index: var(--z-mobile-menu);
  position: relative;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
  padding: 20px var(--container-padding);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px; /* Reduced since language selector has margin now */
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all var(--transition-normal);
  font-weight: 600;
}

.mobile-nav-link:hover {
  background: var(--glass);
  color: var(--txt);
  transform: translateX(4px);
}

.mobile-nav-icon {
  font-size: 18px;
  opacity: 0.8;
}

.mobile-lang {
  justify-content: center;
  gap: 8px;
}

/* Base styles for mobile language buttons (inherited from desktop) */
.mobile-lang button {
  height: 44px;
  min-width: 64px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--txt);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-lang button:hover {
  transform: var(--transform-hover-scale);
  border-color: var(--brand);
  background: var(--glass-hover);
  box-shadow: var(--glow-brand), 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mobile-lang button.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0b10;
  border-color: transparent;
  box-shadow: var(--glow-brand-strong);
  font-weight: 800;
  transform: scale(1.05);
}

.mobile-lang button.active::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: inherit;
  z-index: var(--z-behind);
  animation: mobileActiveGlow 2.5s ease-in-out infinite alternate;
}


.mobile-lang button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.mobile-lang button:hover::after {
  left: 100%;
}

/* —— Enhanced Hero Section —— */
.hero {
  padding: 100px 0 60px;
  position: relative;
  z-index: var(--z-content);
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
}

.hero-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 40px 40px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  animation: badgeFloat 3s ease-in-out infinite;
}

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

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

.hero-title {
  margin-bottom: 20px;
  background: linear-gradient(135deg, 
    var(--txt) 0%, 
    rgba(238, 241, 248, 0.8) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(16px, 1.2vw + 14px, 20px);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}

.trust-indicators {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.trust-item:hover {
  background: var(--glass-hover);
  transform: var(--transform-hover-lift);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

/* —— Enhanced Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 52px;
}

.btn:hover {
  transform: var(--transform-hover-lift);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0b10;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

.btn-primary:hover {
  box-shadow: var(--glow-brand-strong), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-glow {
  box-shadow: var(--glow-brand);
}

.btn-glow:hover {
  box-shadow: var(--glow-brand-strong);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.btn-primary:hover .btn-shine {
  left: 100%;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--txt);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--glass-hover);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.btn-secondary {
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  color: var(--txt);
}

.btn-secondary:hover {
  background: #1a1f2d;
  border-color: #3a4256;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
  min-height: 40px;
}

/* —— Enhanced Glass Effect Components —— */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(140%);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
}

.card {
  padding: 28px;
}

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

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

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

/* —— Enhanced Hero Cards —— */
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  pointer-events: none;
  width: 100%;
}

@media (min-width: 1201px) {
  .hero-card {
    min-width: 520px;
  }
}

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 24px;
  position: relative;
}

.stats-item {
  text-align: center;
  position: relative;
}

.stats-number {
  margin: 0 0 8px;
  font-size: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.stats-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.stats-icon {
  position: absolute;
  top: -2px;
  right: -5px;
  font-size: 18px;
  opacity: .8;
}

/* Специальные стили для иконок только на десктопе */
@media (min-width: 1201px) {
  /* Специальные стили для иконки ⚙️ */
  .stats-icon.stats-icon-gear {
    right: 10px;
    font-size: 20px;
    top: -3px;
  }

  /* Специальные стили для иконки 📈 */
  .stats-icon.stats-icon-chart {
    right: 5px;
    font-size: 20px;
    top: -3px;
  }
}

.card-preview {
  overflow: hidden;
  position: relative;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-brd);
  background: rgba(0, 0, 0, 0.25);
}

.preview-bar {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }

.preview-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.preview-body {
  padding: 20px;
  display: grid;
  gap: 14px;
  min-height: 200px;
}

/* —— Enhanced Chat Component —— */
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: auto;
  /* Fixed height for mobile stability */
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  contain: layout style paint;
  width: 100%;
  box-sizing: border-box;
  /* Better scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
  padding: 8px 4px;
  margin: 0;
  /* Prevent text wrapping issues */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Enhanced scrollbar for chat */
.chat::-webkit-scrollbar {
  width: 6px;
}

.chat::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.chat::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 3px;
  transition: background 0.3s ease;
}

.chat::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
}

/* Language-specific rules will be moved after base styles */

/* Mobile language optimizations */
@media (max-width: 768px) {
  /* Higher specificity instead of !important */
  .hero-card .chat,
  .preview-body .chat {
    max-height: 360px;
    gap: 6px;
    padding: 6px 2px;
  }

  .hero-card .bubble,
  .preview-body .bubble {
    max-width: 78%; /* Reduced for better mobile fit */
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    margin: 1px 0;
  }

  /* Language-specific mobile optimizations with higher specificity */
  html[lang="ru"] .hero-card .bubble,
  html[lang="ru"] .preview-body .bubble {
    max-width: 75%; /* Extra conservative for Russian */
  }

  html[lang="en"] .hero-card .bubble,
  html[lang="en"] .preview-body .bubble {
    max-width: 78%;
  }

  html[lang="uz"] .hero-card .bubble,
  html[lang="uz"] .preview-body .bubble {
    max-width: 78%;
  }

  /* Ensure chat container doesn't overflow */
  html[lang="ru"] .hero-card .chat,
  html[lang="ru"] .preview-body .chat {
    overflow-x: hidden;
    padding: 6px 8px; /* More padding for safety */
  }
}

.bubble {
  width: fit-content;
  max-width: 80%; /* Reduced base width to avoid conflicts */
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
  position: relative;
  /* Enhanced text handling */
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  /* Mobile optimizations */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  min-width: 0;
  /* Ensure proper alignment */
  margin: 2px 0;
  flex-shrink: 0;
}

.bubble.user {
  justify-self: end;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0b10;
  font-weight: 600;
}

.bubble.bot {
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  color: var(--txt);
}

.bubble.accent {
  /* Убираем свечение */
  box-shadow: none;
  animation: none;
}

.bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.typing {
  display: none;
  align-items: center;
  gap: 6px;
  width: max-content;
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  padding: 12px 16px;
  border-radius: 16px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* —— Language-specific chat optimizations (AFTER base styles) —— */
/* Russian text tends to be longer */
html[lang="ru"] .preview-body .bubble,
html[lang="ru"] .hero-card .bubble {
  max-width: calc(82% - 4px); /* Higher specificity instead of !important */
  line-height: 1.45; /* Tighter line height */
}

/* English text is more compact */
html[lang="en"] .preview-body .bubble,
html[lang="en"] .hero-card .bubble {
  max-width: calc(80% - 4px);
  line-height: 1.5;
}

/* Uzbek text characteristics */
html[lang="uz"] .preview-body .bubble,
html[lang="uz"] .hero-card .bubble {
  max-width: calc(80% - 4px);
  line-height: 1.5;
  /* Better letter spacing for Uzbek */
  letter-spacing: 0.01em;
}

/* Dynamic chat height based on language */
html[lang="ru"] .preview-body .chat,
html[lang="ru"] .hero-card .chat {
  max-height: min(480px, 58vh); /* More space for Russian */
}

html[lang="en"] .preview-body .chat,
html[lang="en"] .hero-card .chat {
  max-height: min(460px, 56vh);
}

html[lang="uz"] .preview-body .chat,
html[lang="uz"] .hero-card .chat {
  max-height: min(440px, 54vh);
}

/* —— Enhanced Service Cards —— */
.service-card {
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--glow-brand);
}

.service-icon {
  position: relative;
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-bg {
  font-size: 32px;
  position: relative;
  z-index: var(--z-tooltip);
}

.icon-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: 50%;
}

.service-card:hover .icon-glow {
  opacity: 0.3;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.service-features {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.feature {
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
}

/* —— Enhanced Tabs —— */
.tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  padding: 4px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  position: relative;
}

.tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px;
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: var(--z-particles);
}

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

.tab:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.05);
}

.tab.active {
  color: #0a0b10;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.tabpanel {
  display: none;
}

.tabpanel.active {
  display: block;
  animation: tabFadeIn 0.2s ease-out;
}

@keyframes tabFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Enhanced Carousel —— */
.carousel {
  position: relative;
  margin: 0 -10px;
  padding: 0 60px; /* Space for buttons */
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 16px 0 24px;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
  -webkit-overflow-scrolling: touch;
}

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

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
  background: var(--chip);
  border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 3px;
}

.shot-enhanced {
  min-width: 380px;
  height: 320px;
  background: linear-gradient(135deg, #1b2233, #0e1320);
  border: 1px solid var(--chip-brd);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: var(--txt);
  font-weight: 600;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.shot-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(124, 77, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(0, 212, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.shot-enhanced:hover::before {
  opacity: 1;
}

.shot-enhanced:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--glow-brand);
}

.shot-overlay {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
}

.shot-category {
  background: var(--brand);
  color: #0a0b10;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.shot-tech {
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}

.shot-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
  z-index: var(--z-behind);
}

.shot-enhanced:hover .shot-glow {
  opacity: 0.2;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--txt);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-floating);
  opacity: 0.8;
  pointer-events: auto;
}

.carousel-btn:hover {
  background: var(--glass-hover);
  border-color: var(--brand);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* —— Enhanced Pricing Section —— */
.pricing-section {
  background: radial-gradient(
    ellipse at center,
    rgba(124, 77, 255, 0.03) 0%,
    transparent 70%
  );
}

.pricing-category-header {
  margin: 40px 0 30px;
  text-align: center;
}

.pricing-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  color: var(--txt);
  margin: 0;
}

.pricing-icon {
  font-size: 28px;
}

.pricing-grid {
  margin-bottom: 60px;
}

.plan-enhanced {
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.plan-enhanced:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--glow-brand);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.plan-icon {
  font-size: 24px;
  opacity: 0.8;
}

.plan-enhanced .price {
  font-size: 32px;
  font-weight: 800;
  margin: 12px 0 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--muted);
  text-align: left;
}

.plan-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--transition-normal);
}

.plan-features li:hover {
  color: var(--txt);
}

.feature-icon {
  color: var(--ok);
  font-weight: bold;
  font-size: 16px;
}


.btn-plan {
  width: 100%;
  margin-top: 8px;
}

/* —— Enhanced Lead Form Section —— */
.lead-section {
  background: radial-gradient(
    ellipse at center,
    rgba(0, 212, 255, 0.02) 0%,
    transparent 70%
  );
  position: relative;
  overflow: hidden;
}

.lead-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
}

.lead-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, transparent 40%, rgba(124, 77, 255, 0.1) 41%, rgba(124, 77, 255, 0.1) 42%, transparent 43%),
    linear-gradient(150deg, transparent 40%, rgba(0, 212, 255, 0.1) 41%, rgba(0, 212, 255, 0.1) 42%, transparent 43%);
  background-size: 60px 60px;
  animation: patternSlide 15s linear infinite;
}

@keyframes patternSlide {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.lead-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.1) 0%, transparent 70%);
  animation: glowPulse 8s ease-in-out infinite;
}

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

.lead-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) var(--lead-form-w);
  gap: 60px;
  align-items: center;
  justify-items: center;
}

.lead-copy {
  max-width: 600px;
  text-align: center;
}

.lead-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, 
    rgba(124, 77, 255, 0.2), 
    rgba(0, 212, 255, 0.2)
  );
  border: 1px solid var(--glass-brd);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 auto 24px;
  backdrop-filter: blur(10px);
}

.lead-title {
  margin-bottom: 20px;
  text-align: center;
}

.lead-description {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
  text-align: center;
}

.lead-benefits {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  justify-items: center;
}

.benefit-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  color: var(--txt);
  text-align: center;
}

.benefit-icon {
  font-size: 20px;
  opacity: 0.8;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  margin: 0 auto;
  text-align: center;
}

.proof-avatars {
  display: flex;
  gap: -8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--chip);
  border: 2px solid var(--glass-brd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

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

.floating-form {
  animation: formFloat 8s ease-in-out infinite;
}

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

.lead-form {
  position: relative;
  width: 100%;
  max-width: var(--lead-form-w);
  padding: 32px 28px;
  display: grid;
  gap: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, 
    rgba(10, 14, 23, 0.8), 
    rgba(10, 14, 23, 0.6)
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg), 
              0 1px 0 rgba(255, 255, 255, 0.1) inset;
  backdrop-filter: blur(20px) saturate(140%);
  isolation: isolate;
}

.lead-form::after {
  content: '';
  position: absolute;
  inset: -20px -20px -30px -20px;
  z-index: var(--z-behind);
  border-radius: 32px;
  background: radial-gradient(60% 50% at 50% 0%, 
    rgba(0, 0, 0, 0.4), 
    transparent 70%
  );
}

.form-header {
  text-align: center;
  margin-bottom: 8px;
}

.form-header h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--txt);
}

.form-decoration {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  margin: 0 auto;
  border-radius: 1px;
}

.enhanced-input {
  display: grid;
  gap: 8px;
  position: relative;
  overflow: visible;
}

.enhanced-input label {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-icon {
  font-size: 16px;
  opacity: 0.8;
}

.input-wrapper {
  position: relative;
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--chip-brd);
  background: var(--chip);
  color: var(--txt);
  transition: all var(--transition-normal);
  font-family: inherit;
  font-size: 16px;
}

/* Custom Language Selector */
.language-selector,
.contact-method-selector {
  position: relative;
  width: 100%;
  overflow: visible;
}

.language-selected,
.contact-method-selected {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--chip-brd);
  background: var(--chip);
  color: var(--txt);
  transition: all var(--transition-normal);
  font-family: inherit;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  outline: none;
}

.language-selected:hover {
  border-color: var(--brand);
  background: rgba(124, 77, 255, 0.05);
}

.language-selected:focus,
.language-selected.active {
  border-color: var(--brand);
  background: rgba(124, 77, 255, 0.05);
}

.language-selected.active + .input-focus-ring {
  opacity: 0.2;
}

.language-selected .language-flag {
  font-size: 18px;
  margin-right: 12px;
}

.language-selected .language-name {
  flex: 1;
  text-align: left;
}

.language-selected .language-arrow {
  color: var(--muted);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
}

.language-selected.active .language-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
  overflow: hidden;
}

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

.language-option {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--transition-normal);
  outline: none;
}

.language-option:hover,
.language-option:focus {
  background: rgba(124, 77, 255, 0.08);
}

.language-option.selected {
  background: rgba(124, 77, 255, 0.12);
  color: var(--brand);
}

.language-option .language-flag {
  font-size: 18px;
  margin-right: 12px;
}

.language-option .language-name {
  flex: 1;
  font-size: 16px;
}

/* Glass effect for dropdown */
.language-dropdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  border-radius: 16px;
  pointer-events: none;
}

/* Animation for dropdown appearance */
@keyframes languageDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.language-dropdown.show {
  animation: languageDropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effects for better interactivity */
.language-option {
  position: relative;
  overflow: hidden;
}

.language-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), transparent);
  transition: width 0.3s ease;
  opacity: 0.1;
}

.language-option:hover::before {
  width: 100%;
}

/* Mobile responsive adjustments */

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .language-dropdown {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  
  .language-dropdown::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  }
}

.lead-form input::placeholder {
  color: var(--muted);
}

.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(124, 77, 255, 0.05);
}

.input-focus-ring {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: var(--z-behind);
}

.lead-form input:focus + .input-focus-ring,
.lead-form select:focus + .input-focus-ring {
  opacity: 0.2;
}

.lead-form input[aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(255, 100, 100, 0.05);
}

.btn-submit {
  height: 56px;
  width: 100%;
  margin-top: 8px;
  position: relative;
}

.btn-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

.btn-submit.loading .btn-loading {
  opacity: 1;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(10, 11, 16, 0.3);
  border-top: 2px solid #0a0b10;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.form-note {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.note-icon {
  font-size: 14px;
  opacity: 0.8;
}

.error {
  margin-top: 4px;
  color: var(--danger);
  font-weight: 600;
  min-height: 1em;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.success {
  display: none; /* Force hidden state initially */
  margin-top: 16px;
  color: var(--ok);
  font-weight: 600;
  padding: 16px;
  background: rgba(0, 255, 163, 0.1);
  border: 1px solid rgba(0, 255, 163, 0.3);
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}
.success.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.success-icon {
  font-size: 20px;
}

/* —— Enhanced Testimonials Section —— */
.testimonials-section {
  background: radial-gradient(
    ellipse at center,
    rgba(138, 43, 226, 0.02) 0%,
    transparent 70%
  );
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial {
  padding: 28px;
  transition: all var(--transition-normal);
}

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

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.quote-icon {
  font-size: 48px;
  color: var(--brand);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: -10px;
  line-height: 1;
}

.testimonial-content p {
  margin: 0;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: var(--z-particles);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--chip);
  border: 2px solid var(--chip-brd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.author-name {
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 2px;
}

.author-role {
  font-size: 14px;
  color: var(--muted);
}

/* —— Enhanced Footer —— */
.enhanced-footer {
  padding: 30px 0 15px;
  position: relative;
  overflow: hidden;
}

.footer-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
}

.footer-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
  background-size: 50px 50px;
  animation: footerPatternMove 25s linear infinite;
}

@keyframes footerPatternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.enhanced-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
  backdrop-filter: blur(20px) saturate(130%);
  background: linear-gradient(180deg, 
    rgba(6, 10, 20, 0.8), 
    rgba(6, 10, 20, 0.95)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5) inset;
}

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

.footer-main {
  max-width: 200px;
  flex-shrink: 0;
}

.footer-description {
  display: none;
}

.footer-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-column {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-column h4 {
  display: none;
}

.nav-column a {
  color: var(--muted);
  font-size: 14px;
  transition: color var(--transition-normal);
}

.nav-column a:hover {
  color: var(--txt);
}

.footer-cta {
  flex-shrink: 0;
}

.footer-cta h4 {
  display: none;
}

.footer-cta p {
  display: none;
}

.btn-footer {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
}

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

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

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
  transition: color var(--transition-normal);
}

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

/* —— Scroll to Top Button —— */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: var(--txt);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  z-index: var(--z-floating);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--glass-hover);
  border-color: var(--brand);
  transform: var(--transform-hover-lift);
  box-shadow: var(--glow-brand);
}

/* —— Enhanced Reveal Animation —— */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive Design —— */
@media (min-width: 1201px) {
  .container {
    max-width: 1200px;
    padding: 0 20px;
  }
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-card {
    order: -1;
  }

  /* Мобильная оптимизация карточки статистики */
  .stats-number {
    font-size: 20px;
    margin: 0 0 4px;
  }
  
  .stats-label {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }
  
  .stats-item {
    min-width: 80px;
    padding: 0 2px;
  }
  
  /* Сдвигаем иконку 🚀 вправо на мобильных */
  .stats-icon.stats-icon-rocket {
    right: 10px;
  }

  .lead-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  
  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Global mobile optimizations */
  * {
    -webkit-tap-highlight-color: transparent; /* Remove tap highlights */
  }

  html {
    scroll-padding-top: 60px; /* Smaller header on mobile */
  }

  :root {
    --section-gap: 80px;
    --container-padding: 5%;
  }

  /* Дополнительная оптимизация статистики для маленьких экранов */
  .stats-number {
    font-size: 18px;
    margin: 0 0 2px;
  }
  
  .stats-label {
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .card-stats {
    padding: 16px 12px;
    gap: 8px;
  }
  
  .stats-item {
    min-width: 75px;
    max-width: 90px;
  }
  
  /* Дополнительное смещение иконки 🚀 на маленьких экранах */
  .stats-icon.stats-icon-rocket {
    right: -20px;
  }
  
  /* Enhanced mobile chat optimizations */
  .chat {
    gap: 6px;
    padding: 6px 4px;
    max-height: 360px;
    margin: 0 auto;
    /* Better mobile scrolling */
    -webkit-overflow-scrolling: touch;
  }
  
  /* Mobile portfolio fixes */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
    padding: 0 10px;
  }
  
  /* Mobile carousel overrides */
  .carousel {
    margin: 0;
    padding: 0 50px; /* Space for buttons */
    position: relative;
  }
  
  .carousel .carousel-track {
    display: flex;
    overflow: hidden; /* Remove scroll */
    scroll-behavior: unset;
    cursor: default;
    gap: 0;
    padding: 16px 0;
  }
  
  .carousel .portfolio-item.shot-enhanced {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 16px;
    height: auto;
    min-height: 280px;
    position: relative;
    display: none; /* Hide all by default */
    opacity: 0;
    transform: translateX(20px);
    transition: none; /* Remove transition for immediate switching */
    pointer-events: auto;
  }
  
  /* Active state - highest priority */
  .carousel .portfolio-item.shot-enhanced.active {
    display: flex; /* Show only active */
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Force hide ALL non-active items */
  #sites-carousel .portfolio-item.shot-enhanced:not(.active),
  #bots-carousel .portfolio-item.shot-enhanced:not(.active) {
    display: none;
    opacity: 0;
  }
  
  /* Fallback: first child shows only if no active items exist */
  #sites-carousel .portfolio-item.shot-enhanced:first-child:not(.active):not(~ .active),
  #bots-carousel .portfolio-item.shot-enhanced:first-child:not(.active):not(~ .active) {
    display: flex;
    opacity: 1;
    transform: translateX(0);
  }
  
  .carousel .portfolio-item.shot-enhanced.hiding {
    opacity: 0;
    transform: translateX(-20px);
  }
  
  .carousel .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    opacity: 1;
    background: var(--glass);
    border: 1px solid var(--brand);
    z-index: var(--z-emergency);
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .carousel .carousel-btn:hover {
    background: var(--brand);
    color: white;
    transform: translateY(-50%) scale(1.1);
  }
  
  .carousel .carousel-btn.left {
    left: 8px;
  }
  
  .carousel .carousel-btn.right {
    right: 8px;
  }
  
  .tabs {
    flex-wrap: wrap;
    gap: 2px;
    padding: 2px;
  }
  
  .tab {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .tab-icon {
    font-size: 12px;
  }
  
  
  .shot-enhanced {
    min-width: 320px;
    height: 260px;
    padding: 16px;
  }
  
  .lead-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .lead-copy {
    text-align: center;
    justify-self: center;
  }
  
  .bubble {
    max-width: 88%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px;
    line-height: 1.4;
  }
  
  .bubble.show {
    transform: translateY(0);
  }
  
  .typing {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  
  .burger {
    display: flex;
  }
  
  .nav,
  .lang-switch {
    display: none;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero {
    text-align: center; /* Ensure hero content is centered */
  }
  
  .hero-grid {
    gap: 30px; /* Reduce gap on mobile */
  }
  
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 20px auto 24px;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto; /* Center buttons */
  }
  
  .trust-indicators {
    justify-content: center;
    margin: 24px auto 0;
  }
  
  .trust-item {
    text-align: center;
    min-width: auto;
  }
  
  .cards-3 {
    grid-template-columns: 1fr;
  }
  
  .tabs {
    width: 100%;
    justify-content: center;
  }
  
  .carousel {
    margin: 0;
    padding: 0;
  }
  
  .carousel-btn {
    display: flex;
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .carousel-btn.left {
    left: 0;
  }
  
  .carousel-btn.right {
    right: 0;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .nav-column {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
  }
  
  /* Enhanced mobile form elements */
  .lead-form {
    margin: 0 auto;
    max-width: 100%;
    padding: 24px 20px;
  }
  
  .lead-form input {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-appearance: none; /* Remove default styling */
    appearance: none; /* Standard property for compatibility */
    border-radius: 12px;
  }
  
  .btn-submit {
    font-size: 16px; /* Consistent with inputs */
    min-height: 52px;
  }
  
  /* Enhanced mobile cards */
  .card {
    padding: 20px;
    margin: 0 auto;
  }
  
  .service-card {
    text-align: center;
    padding: 24px 20px;
  }
  
  /* Mobile-optimized animations */
  .bubble {
    transition: all 0.3s ease; /* Faster animations on mobile */
  }
  
  .btn:hover,
  .lang-btn:hover {
    transform: none; /* Disable hover transforms on touch devices */
  }
  
  .btn:active,
  .lang-btn:active {
    transform: scale(0.98); /* Touch feedback */
  }

  /* Language selector mobile optimization */
  .language-selected .language-flag {
    font-size: 16px;
    margin-right: 10px;
  }

  .language-option .language-flag {
    font-size: 16px;
    margin-right: 10px;
  }

  .language-dropdown {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  }

  /* Data types grid mobile adjustment */
  .data-types {
    grid-template-columns: 1fr;
  }

  /* Contact method selector mobile styling */
  .contact-method-selected .contact-method-icon {
    font-size: 16px;
  }

  .contact-method-option .contact-method-icon {
    font-size: 16px;
  }

  .contact-method-dropdown {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: 60px;
  }
  
  /* Ultra-mobile optimizations */
  .mobile-lang {
    gap: 6px;
    padding: 12px 0 6px;
  }
  
  .mobile-lang button {
    height: 42px;
    min-width: 58px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 14px;
    /* Inherit all main styles from desktop version */
  }
  
  .chat {
    padding: 0 4px;
  }

  .bubble {
    max-width: 82%; /* More conservative for ultra-mobile */
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 12px;
  }

  /* Language-specific ultra-mobile optimizations */
  html[lang="ru"] .chat .bubble,
  html[lang="ru"] .hero-card .bubble {
    max-width: 78%; /* Very conservative for Russian */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  html[lang="en"] .chat .bubble,
  html[lang="en"] .hero-card .bubble {
    max-width: 82%;
  }

  html[lang="uz"] .chat .bubble,
  html[lang="uz"] .hero-card .bubble {
    max-width: 82%;
  }

  html[lang="ru"] .chat {
    padding: 0 10px; /* Extra padding for Russian */
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .trust-indicators {
    flex-direction: column;
    align-items: center;
  }
  
  .shot-enhanced {
    min-width: 300px;
  }
  
  .plan-enhanced {
    padding: 24px;
  }
  
  .lead-form {
    padding: 24px 20px;
  }
  
  .testimonial {
    padding: 20px;
  }
  
  /* Service items - switch to vertical on mobile */
  .service-item {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }
  
  .service-icon {
    font-size: 40px;
    margin-bottom: 4px;
    width: 56px;
    height: 56px;
  }
}

/* —— Mobile Touch Optimizations —— */
@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  .btn,
  .lang-btn,
  .mobile-nav-link {
    min-height: 44px; /* Touch target size */
    min-width: 44px;
  }
  
  .bubble {
    user-select: none; /* Prevent text selection on bubbles */
    -webkit-user-select: none;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .service-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* —— Legal Pages Styles —— */
.legal-page {
  padding-top: 120px;
  min-height: 100vh;
}

.legal-hero {
  margin-bottom: 40px;
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}

.legal-breadcrumbs a {
  color: var(--brand);
  transition: color var(--transition-normal);
}

.legal-breadcrumbs a:hover {
  color: var(--brand-2);
}

.breadcrumb-separator {
  color: var(--muted);
  opacity: 0.6;
}

.legal-header {
  text-align: center;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 800px;
}

.legal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--txt), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.legal-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.meta-icon {
  opacity: 0.8;
}

.legal-content {
  margin-bottom: 80px;
  text-align: center;
}

.legal-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  text-align: left;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 24px;
  color: var(--txt);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-brd);
  text-align: center;
}

.legal-section h3 {
  font-size: 18px;
  color: var(--txt);
  margin-bottom: 12px;
  text-align: left;
}

.legal-section p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: left;
}

.legal-section ul {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--brand);
  transition: color var(--transition-normal);
}

.legal-section a:hover {
  color: var(--brand-2);
}

/* Data Types Grid */
.data-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px auto;
  max-width: 100%;
  align-items: stretch;
}


.data-type {
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  border-radius: 16px;
  padding: 20px;
  transition: all var(--transition-normal);
  height: 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.data-type:hover {
  border-color: var(--brand);
  transform: var(--transform-hover-lift);
}

.data-type h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--txt);
}

.data-type ul {
  margin: 0;
  padding-left: 16px;
  flex-grow: 1;
}

.data-type li {
  margin-bottom: 4px;
}

/* Usage Purposes */
.usage-purposes {
  display: grid;
  gap: 16px;
  margin: 24px auto;
  max-width: 100%;
}

.purpose {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  border-radius: 16px;
  transition: all var(--transition-normal);
}

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

.purpose-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.purpose h3 {
  margin-bottom: 8px;
  color: var(--txt);
}

.purpose p {
  margin: 0;
  font-size: 14px;
}

/* Security Measures */
.security-measures {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.security-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  color: var(--txt);
  font-weight: 600;
}

.security-icon {
  font-size: 20px;
  color: var(--ok);
}

/* Retention Periods */
.retention-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.retention-item {
  text-align: center;
  padding: 20px;
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  border-radius: 16px;
  transition: all var(--transition-normal);
}

.retention-item:hover {
  border-color: var(--brand);
  transform: var(--transform-hover-lift);
}

.retention-item h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--txt);
}

.retention-item p {
  margin: 0;
  color: var(--brand);
  font-weight: 600;
}

/* User Rights */
.user-rights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px auto;
  max-width: 100%;
  justify-items: center;
}

.right-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  border-radius: 16px;
  transition: all var(--transition-normal);
}

.right-item:hover {
  border-color: var(--brand);
  transform: var(--transform-hover-lift);
}

.right-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.right-item h3 {
  margin-bottom: 8px;
  color: var(--txt);
  font-size: 16px;
}

.right-item p {
  margin: 0;
  font-size: 14px;
}

/* Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px auto;
  max-width: 100%;
  justify-items: center;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  text-align: center;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.contact-method::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.contact-method:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.contact-method:hover::before {
  opacity: 0.7;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.contact-method > div {
  text-align: center;
  width: 100%;
}

.contact-method h3 {
  margin: 0 0 8px 0;
  color: var(--txt);
  font-size: 16px;
  text-align: center;
}

.contact-method p,
.contact-method a {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.contact-method a {
  color: var(--brand);
  transition: color var(--transition-normal);
  text-align: center;
  display: block;
}

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

/* Services List */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 40px 0;
}

/* ============================
   Service Cards Styles
   ============================ */
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.service-item:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.service-item:hover::before {
  opacity: 0.7;
}

.service-icon {
  font-size: 48px;
  flex-shrink: 0;
  margin-bottom: 8px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: 
    drop-shadow(0 0 8px var(--brand)) 
    drop-shadow(0 0 16px var(--brand-2));
  transition: filter 0.3s var(--pop), transform 0.3s var(--pop);
  z-index: 1;
}

.service-item > div {
  flex: 1;
  min-width: 0;
}

.service-item:hover .service-icon {
  filter: 
    drop-shadow(0 0 16px var(--brand)) 
    drop-shadow(0 0 32px var(--brand-2));
  transform: scale(1.08) rotate(-2deg);
}

.service-item h3 {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 1.18em;
  font-weight: 700;
  letter-spacing: 0.01em;
  z-index: 1;
}

.service-item p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1em;
  z-index: 1;
}

.service-item ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  z-index: 1;
}

.service-item ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  color: var(--txt);
  font-size: 0.98em;
}

.service-item ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-size: 1.2em;
  top: 0;
}

/* Desktop Enhancement - более красивые эффекты для ПК */
@media (min-width: 1200px) {
  .services-list {
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 48px 0;
  }

  .service-item {
    gap: 24px;
    padding: 40px 36px 36px 36px;
  }

  .service-item:hover {
    transform: scale(1.05) translateY(-4px);
  }

  .service-icon {
    font-size: 56px;
    width: 80px;
    height: 80px;
  }

  .service-item h3 {
    font-size: 1.3em;
  }

  .service-item p {
    font-size: 1.05em;
  }
}

/* Desktop Service Card Animations */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Process Steps */
.process-steps {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.process-step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.process-step:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.process-step:hover::before {
  opacity: 0.7;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0b10;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: 
    drop-shadow(0 0 8px var(--brand)) 
    drop-shadow(0 0 16px var(--brand-2));
  transition: filter 0.3s var(--pop), transform 0.3s var(--pop);
  z-index: 1;
}

.step-content h3 {
  margin-bottom: 8px;
  color: var(--txt);
}

.step-content p {
  margin: 0;
}

/* Payment Info */
.payment-info {
  margin: 24px 0;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.payment-info h3 {
  color: var(--txt);
  margin-bottom: 16px;
}

/* Timeline Info */
.timeline-info {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.timeline-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.timeline-item:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.timeline-item:hover::before {
  opacity: 0.7;
}

.timeline-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  filter: 
    drop-shadow(0 0 8px var(--brand)) 
    drop-shadow(0 0 16px var(--brand-2));
  transition: filter 0.3s var(--pop), transform 0.3s var(--pop);
  z-index: 1;
}

.timeline-item h3 {
  margin-bottom: 8px;
  color: var(--txt);
  font-size: 16px;
}

.timeline-item p {
  margin: 0;
  font-size: 14px;
}

/* Rights and Obligations */
.rights-obligations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

.party-rights {
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.party-rights::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.party-rights:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.party-rights:hover::before {
  opacity: 0.7;
}

.party-rights h3 {
  color: var(--txt);
  margin-bottom: 16px;
  font-size: 18px;
}

/* Warranty Info */
.warranty-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

.warranty-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.warranty-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(0,255,163,0.18), 
    0 0 64px 16px rgba(0,255,163,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.warranty-item:hover {
  border-color: var(--ok);
  box-shadow: 
    0 8px 48px 0 rgba(0,255,163,0.22), 
    0 3px 24px 0 rgba(0,255,163,0.18);
  background: linear-gradient(135deg, rgba(0,255,163,0.16) 0%, rgba(0,255,163,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.warranty-item:hover::before {
  opacity: 0.7;
}

.warranty-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--ok);
  flex-shrink: 0;
  filter: 
    drop-shadow(0 0 8px var(--ok)) 
    drop-shadow(0 0 16px var(--ok));
  transition: filter 0.3s var(--pop), transform 0.3s var(--pop);
  z-index: 1;
}

.warranty-item h3 {
  margin-bottom: 8px;
  color: var(--txt);
  font-size: 16px;
}

.warranty-item p {
  margin: 0;
  font-size: 14px;
}

/* IP Rights */
.ip-rights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
}

.ip-item {
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.ip-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.ip-item:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.ip-item:hover::before {
  opacity: 0.7;
}

.ip-item h3 {
  color: var(--txt);
  margin-bottom: 16px;
}

/* Liability Info */
.liability-info {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.liability-item {
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.liability-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.liability-item:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.liability-item:hover::before {
  opacity: 0.7;
}

.liability-item h3 {
  color: var(--txt);
  margin-bottom: 16px;
}

/* Force Majeure */
.force-majeure-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.fm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 8px;
  font-size: 14px;
  color: var(--txt);
}

.fm-icon {
  font-size: 18px;
  opacity: 0.8;
}

/* Dispute Process */
.dispute-process {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}

.dispute-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 28px 28px 28px;
  background: var(--chip);
  border: 1.5px solid var(--chip-brd);
  border-radius: 22px;
  box-shadow: 
    0 4px 32px 0 rgba(124,77,255,0.10), 
    0 1.5px 12px 0 rgba(0,212,255,0.10);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.dispute-step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 
    0 0 32px 8px rgba(124,77,255,0.18), 
    0 0 64px 16px rgba(0,212,255,0.10);
  opacity: 0.45;
  z-index: 0;
  transition: opacity 0.3s var(--pop);
}

.dispute-step:hover {
  border-color: var(--brand);
  box-shadow: 
    0 8px 48px 0 rgba(124,77,255,0.22), 
    0 3px 24px 0 rgba(0,212,255,0.18);
  background: linear-gradient(135deg, rgba(124,77,255,0.16) 0%, rgba(0,212,255,0.16) 100%), var(--chip);
  transform: scale(1.025) translateY(-2px);
}

.dispute-step:hover::before {
  opacity: 0.7;
}

.dispute-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0a0b10;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.dispute-step h3 {
  margin-bottom: 8px;
  color: var(--txt);
  font-size: 16px;
}

.dispute-step p {
  margin: 0;
  font-size: 14px;
}

/* Legal Footer */
.legal-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-brd);
}

.legal-footer-content {
  text-align: center;
  margin: 0 auto;
}

.legal-footer-content p {
  font-size: 16px;
  color: var(--txt);
  margin-bottom: 24px;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding-top: 80px;
  }
  
  .legal-article {
    padding: 24px 20px;
    text-align: center;
  }
  
  .legal-header {
    padding: 24px 20px;
  }
  
  .legal-breadcrumbs {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .legal-icon {
    font-size: 36px;
  }
  
  .legal-meta {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .data-types,
  .user-rights,
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .rights-obligations {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .step-number,
  .dispute-number {
    align-self: center;
  }
  
  .footer-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-actions .btn {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .legal-section h2 {
    font-size: 20px;
  }
  
  .legal-subtitle {
    font-size: 16px;
  }
  
  .contact-method,
  .purpose,
  .right-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    align-items: center;
  }

  .contact-method div {
    text-align: center;
  }
  
  .legal-section {
    text-align: center;
  }
  
  .legal-section p {
    text-align: left;
  }
  
  .legal-section ul {
    text-align: left;
  }
}

/* —— Portfolio Enhanced Styles —— */
.portfolio-item {
  position: relative;
  cursor: pointer;
}

.portfolio-item .shot-content {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  transition: all var(--transition-normal);
}

.portfolio-item:hover .shot-content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.shot-preview {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.shot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  position: relative;
}

.shot-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
}

.project-icon-large {
  font-size: 4rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  z-index: var(--z-tooltip);
  position: relative;
  opacity: 1;
  transition: opacity var(--transition-normal);
}

.portfolio-item:hover .project-icon-large {
  display: none;
}


.shot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, transparent 70%);
  opacity: 0;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  color: white;
}

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

.overlay-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
}

.portfolio-item:hover .overlay-top {
  opacity: 1;
  transform: translateY(0);
}

.overlay-bottom {
  align-self: flex-end;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.portfolio-item:hover .overlay-bottom {
  opacity: 1;
  transform: translateY(0);
}

.shot-category {
  background: var(--brand);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.shot-tech {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

.shot-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.shot-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: fit-content;
}

.shot-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
  transform: var(--transform-hover-lift);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shot-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.shot-btn-primary:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.shot-btn-secondary {
  background: rgba(107, 114, 128, 0.8);
  border-color: rgba(107, 114, 128, 0.5);
}

.shot-btn-info {
  background: rgba(59, 130, 246, 0.8);
  border-color: rgba(59, 130, 246, 0.5);
}

.shot-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  font-size: 0.9rem;
}

.portfolio-item figcaption {
  padding: 1.5rem 1.2rem;
  background: var(--glass);
  margin: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-title {
  font-weight: 600;
  color: var(--txt);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.project-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Project Modal Styles */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(90vw, 600px);
  max-height: 90vh;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.project-modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: var(--z-overlay);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-bottom: 1px solid var(--glass-brd);
}

.project-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 12px;
}

.project-info h3 {
  margin: 0;
  color: var(--txt);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-category {
  background: var(--brand);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.project-description {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.project-tech,
.project-features {
  margin-bottom: 2rem;
}

.project-tech h4,
.project-features h4 {
  color: var(--txt);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  color: var(--brand);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  color: var(--muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: bold;
}

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

.screenshot-placeholder {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.screenshot-placeholder:hover {
  background: var(--glass-hover);
  transform: var(--transform-hover-lift);
}

.placeholder-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.placeholder-text {
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 0.25rem;
}

.placeholder-note {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.8;
}

.project-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-brd);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bot-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(124, 77, 255, 0.1);
  border: 1px solid rgba(124, 77, 255, 0.2);
  border-radius: 12px;
  color: var(--brand);
  font-size: 0.9rem;
}

.note-icon {
  font-size: 1.1rem;
}

.carousel-track {
  transition: transform var(--transition-normal);
}

/* Responsive Updates */
@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    max-height: 95vh;
  }
  
  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }
  
  .project-icon {
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
  
  .tech-tags {
    gap: 0.25rem;
  }
  
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* —— Print Styles —— */
@media print {
  .site-header,
  .mobile-menu,
  .scroll-to-top,
  #bg-aurora,
  #tsparticles {
    display: none !important;
  }
  
  .section {
    padding-block: 20px;
  }
  
  .glass {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  .legal-page {
    padding-top: 0;
  }
}
/* Добавьте этот CSS в конец файла styles.css */

/* Анимация shake для заблокированных кнопок языка */
@keyframes shake {
  0%, 100% { 
    transform: translateX(0); 
  }
  10%, 30%, 50%, 70%, 90% { 
    transform: translateX(-3px); 
  }
  20%, 40%, 60%, 80% { 
    transform: translateX(3px); 
  }
}

/* Улучшенные стили для заблокированных кнопок языка */
.lang-btn:disabled,
.lang-btn.locked {
  pointer-events: none;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(0.95);
  filter: grayscale(50%);
}

.lang-btn:disabled:hover,
.lang-btn.locked:hover {
  transform: scale(0.95);
  border-color: var(--chip-brd);
  color: var(--muted);
}

/* Визуальный индикатор блокировки */
.lang-btn:disabled::after,
.lang-btn.locked::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: lockPulse 1s infinite;
  z-index: var(--z-overlay);
  box-shadow: 0 0 6px rgba(255, 100, 100, 0.6);
}

/* Анимация пульсации для индикатора блокировки */
@keyframes lockPulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.5; 
    transform: scale(1.2); 
  }
}

/* Дополнительная защита от взаимодействия */
.lang-btn.locked *,
.lang-btn:disabled * {
  pointer-events: none;
}

/* Стиль для активной кнопки языка (не должна реагировать на повторные клики) */
.lang-btn.active {
  cursor: default;
  position: relative;
}

.lang-btn.active:hover {
  transform: var(--transform-hover-subtle);
}

/* Индикатор активности */
.lang-btn.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: inherit;
  z-index: var(--z-behind);
  opacity: 0.8;
}

/* ====================== Contact Method Selector (additional styles) ====================== */
.contact-method-selected:hover {
  border-color: var(--brand);
  background: rgba(124, 77, 255, 0.05);
}

.contact-method-selected:focus,
.contact-method-selected.active {
  border-color: var(--brand);
  background: rgba(124, 77, 255, 0.05);
}

.contact-method-selected.active + .input-focus-ring {
  opacity: 0.2;
}

.contact-method-selected .contact-method-icon {
  font-size: 18px;
  margin-right: 12px;
}

.contact-method-selected .contact-method-name {
  flex: 1;
  text-align: left;
}

.contact-method-selected .contact-method-arrow {
  color: var(--muted);
  transition: transform var(--transition-normal);
}

.contact-method-selected.active .contact-method-arrow {
  transform: rotate(180deg);
}

.contact-method-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--chip);
  border: 1px solid var(--chip-brd);
  border-radius: 16px;
  margin-top: 4px;
  padding: 8px;
  z-index: var(--z-notification);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(20px);
}

.contact-method-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-method-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}

.contact-method-option:hover,
.contact-method-option:focus {
  background: rgba(124, 77, 255, 0.08);
  outline: none;
}

.contact-method-option.selected {
  background: rgba(124, 77, 255, 0.12);
  color: var(--brand);
}

.contact-method-option .contact-method-icon {
  font-size: 18px;
  margin-right: 12px;
}

.contact-method-option .contact-method-name {
  flex: 1;
  text-align: left;
}

.contact-method-option::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;
}

.contact-method-option:hover::before {
  left: 100%;
}

/* Contact hint styling */
.contact-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0;
  transform: var(--transform-hover-lift);
  transition: all var(--transition-normal);
}

.contact-hint.show {
  opacity: 1;
  transform: translateY(0);
}

/* Contact value input dynamic styling */
.contact-value-telegram .input-wrapper input {
  padding-left: 40px;
}

.contact-value-telegram .input-wrapper::before {
  content: '@';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  z-index: var(--z-particles);
}



.contact-method-option .contact-method-icon {
  font-size: 18px;
  margin-right: 12px;
}

.contact-method-option .contact-method-name {
  flex: 1;
  text-align: left;
}

.contact-method-option::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;
}

.contact-method-option:hover::before {
  left: 100%;
}

/* Contact hint styling */
.contact-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-2px);
  transition: all var(--transition-normal);
}

.contact-hint.show {
  opacity: 1;
  transform: translateY(0);
}

/* Contact value input dynamic styling */
.contact-value-telegram .input-wrapper input {
  padding-left: 40px;
}

.contact-value-telegram .input-wrapper::before {
  content: '@';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  z-index: 1;
}

/* Mobile responsiveness for contact method selector */
@media (max-width: 768px) {
  .contact-method-selected .contact-method-icon {
    font-size: 16px;
  }

  .contact-method-option .contact-method-icon {
    font-size: 16px;
  }

  .contact-method-dropdown {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  }
}

/* ============================
   Live Chat Integration Styles
   ============================ */

/* Chat preview in hero section */
.chat-preview-content {
  padding: 16px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-message {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.3;
  animation: messageSlideIn 0.3s ease;
}

.preview-message.user {
  align-self: flex-end;
  background: #7c4dff;
  color: white;
  border-bottom-right-radius: 4px;
}

.preview-message.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-action {
  margin-top: 12px;
  text-align: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 8px;
}

.chat-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  opacity: 0.8;
  margin-left: auto;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  transition: background-color 0.3s ease;
}

.status-text {
  transition: color 0.3s ease;
}

/* Enhanced service cards */
.service-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.feature {
  padding: 4px 8px;
  background: rgba(124, 77, 255, 0.2);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #00d4ff;
  border: 1px solid rgba(124, 77, 255, 0.3);
}

/* Enhanced pricing cards */
.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-features li:last-child {
  border-bottom: none;
}

.feature-icon {
  color: #10b981;
  font-weight: bold;
  font-size: 14px;
}

/* Chat link in footer */
.chat-link {
  color: #7c4dff !important;
  transition: all 0.2s ease;
}

.chat-link:hover {
  color: #00d4ff !important;
  transform: translateX(4px);
}

/* Form enhancements for contact method selector */
/* Contact hint styling */
.contact-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.8;
}

/* Animation keyframes */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Live chat widget animations */
@keyframes chatPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.5);
  }
}

.chat-toggle.has-messages {
  animation: chatPulse 2s infinite;
}

/* Enhanced loading states */
.btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loading {
  display: flex;
}

.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 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* New Service Card Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(1deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1.15) rotate(5deg) translateY(-4px); }
  50% { transform: scale(1.2) rotate(8deg) translateY(-8px); }
}

@keyframes sparkle {
  0%, 100% { 
    opacity: 1; 
    filter: drop-shadow(0 0 4px var(--brand-2)); 
  }
  50% { 
    opacity: 0.7; 
    filter: drop-shadow(0 0 8px var(--brand-2)) drop-shadow(0 0 12px var(--brand)); 
  }
}

/* ============================
   Mobile Responsive Enhancements
   ============================ */

@media (max-width: 768px) {
  .trust-indicators {
    gap: 12px;
    justify-content: center;
  }

  .trust-item {
    font-size: 13px;
    padding: 6px 10px;
  }

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

  .service-features {
    justify-content: center;
  }

  .chat-preview-content {
    padding: 12px;
  }

  .preview-message {
    font-size: 12px;
    padding: 6px 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
