@import url('vendor/inter-fonts.css');

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Prevent selection on interactive UI elements only */
.btn-primary,
.btn-secondary,
.nav-link,
.mobile-menu-item,
.mobile-menu-close,
.theme-toggle-desktop,
#theme-toggle,
#theme-toggle-mobile,
#mobile-menu-button,
#mobile-menu-close,
#scroll-to-top,
.logo-oval {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
}

/* Увеличенная высота Hero для десктопной версии */
@media (min-width: 768px) {
  .hero-section {
    min-height: 800px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Градиентная волна на фоне - только для темной темы и ПК */
@media (min-width: 768px) {
  body:not(.light) .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(100, 255, 218, 0.15) 0%,
      transparent 15%,
      transparent 35%,
      rgba(100, 255, 218, 0.1) 50%,
      transparent 65%,
      transparent 85%,
      rgba(100, 255, 218, 0.15) 100%
    );
    background-size: 300% 300%;
    animation: gradientWave 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
  }
  
  /* Градиентная волна для светлой темы */
  body.light .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.08) 0%,
      transparent 15%,
      transparent 35%,
      rgba(37, 99, 235, 0.05) 50%,
      transparent 65%,
      transparent 85%,
      rgba(37, 99, 235, 0.08) 100%
    );
    background-size: 300% 300%;
    animation: gradientWave 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
  }
}

/* Лёгкий фон для Hero на мобильных, чтобы стиль совпадал с ПК */
@media (max-width: 768px) {
  body:not(.light) .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(100, 255, 218, 0.08) 0%,
      transparent 20%,
      transparent 70%,
      rgba(100, 255, 218, 0.06) 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  body.light .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.06) 0%,
      transparent 25%,
      transparent 70%,
      rgba(37, 99, 235, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
  }
}

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



body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #0a192f 0%, #0d2438 100%);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-bg {
  background-color: rgba(13, 36, 56, 0.5);
}

.nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #64FFDA !important;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.6) 0%, rgba(13, 36, 56, 0.6) 100%);
  border: 1px solid rgba(100, 255, 218, 0.25);
  box-shadow: 0 2px 8px 0 rgba(100, 255, 218, 0.15);
  transform: translateY(-1px);
}

/* Только для ПК версии */
@media (min-width: 768px) {
  .nav-link {
    padding: 0.5rem 1rem;
  }
  
  .nav-link:hover {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.7) 0%, rgba(13, 36, 56, 0.7) 100%);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 4px 12px 0 rgba(100, 255, 218, 0.2);
  }
}

.card-hover {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card-hover:hover {
  border-color: #64FFDA !important;
  transform: translateY(-5px);
}

/* Адаптация hover для карточек в светлой теме */
body.light .card-hover:hover {
  border-color: #2563eb !important;
  transform: translateY(-5px);
}

.os-icon {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.contact-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

@media (max-width: 768px) {
  .contact-icon-img {
    width: 52px;
    height: 52px;
  }
}

#theme-toggle-mobile {
  position: relative;
  z-index: 100;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(100, 255, 218, 0.2);
}

#theme-toggle-mobile:focus-visible {
  outline: 2px solid #64FFDA;
  outline-offset: 2px;
  border-radius: 4px;
}

body.light #theme-toggle-mobile:focus-visible {
  outline-color: #2563eb;
}

#theme-toggle-mobile .theme-icon-sun {
  color: #ffffff;
}

body.light #theme-toggle-mobile .theme-icon-moon {
  color: #1f2937;
}

#mobile-menu-button {
  padding: 0.75rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu-button:focus-visible {
  outline: 2px solid #64FFDA;
  outline-offset: 2px;
  border-radius: 4px;
}

body.light #mobile-menu-button:focus-visible {
  outline-color: #2563eb;
}

#mobile-menu-button i {
  font-size: 1.5rem;
}

@media (min-width: 769px) {
  #mobile-menu-button {
    display: none !important;
  }
}

.os-icon-windows {
  color: #0078d7;
}

.os-icon-linux {
  color: #f05033;
}

.os-icon-apple {
  color: #a2aaad;
}

.os-icon:hover {
  transform: scale(1.15);
}

.os-icon-windows:hover {
  color: #00a4f0;
}

.os-icon-linux:hover {
  color: #ff6b4a;
}

.os-icon-apple:hover {
  color: #c8d0d3;
}

.btn-primary {
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #004d4d;
}

.btn-primary:focus-visible {
  outline: 2px solid #64FFDA;
  outline-offset: 2px;
}

.btn-secondary {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: rgba(100, 255, 218, 0.1);
  border-color: #64FFDA;
}

.btn-secondary:focus-visible {
  outline: 2px solid #64FFDA;
  outline-offset: 2px;
}

/* Glassmorphism эффект для кнопок (только ПК версия) */
@media (min-width: 768px) {
  .btn-glass.btn-primary {
    background: #22D3EE !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 9999px !important;
    box-shadow: 0 8px 32px 0 rgba(34, 211, 238, 0.15), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0a192f !important;
  }

  .btn-glass.btn-primary:hover {
    background: #06b6d4 !important;
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 12px 40px 0 rgba(34, 211, 238, 0.25), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
  }

  .btn-glass.btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 255, 218, 0.25) !important;
    border-radius: 9999px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .btn-glass.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1) !important;
    border-color: rgba(100, 255, 218, 0.4) !important;
    box-shadow: 0 12px 40px 0 rgba(100, 255, 218, 0.15), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
  }

  /* Светлая тема */
  body.light .btn-glass.btn-primary {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.12), 
                0 2px 8px 0 rgba(0, 0, 0, 0.08),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    color: #2563eb !important;
  }

  body.light .btn-glass.btn-primary:hover {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.18), 
                0 4px 12px 0 rgba(0, 0, 0, 0.1),
                inset 0 1px 0 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
  }

  body.light .btn-glass.btn-secondary {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.06), 
                0 2px 8px 0 rgba(0, 0, 0, 0.04),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
    color: #2563eb !important;
  }

  body.light .btn-glass.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 12px 40px 0 rgba(37, 99, 235, 0.1), 
                0 4px 12px 0 rgba(0, 0, 0, 0.06),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
  }

/* Овальный фон для логотипа (база для мобильной и ПК версий) */
.logo-oval {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0a192f 0%, #0d2438 100%);
  border: 1px solid rgba(100, 255, 218, 0.2);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

  .logo-oval:hover {
    transform: translateY(-1px);
  }

@media (min-width: 768px) {
  .logo-oval {
    padding: 0.5rem 1.25rem;
  }

    .logo-oval:hover {
      border-color: rgba(100, 255, 218, 0.3);
      box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
    }

  /* Светлая тема для логотипа (ПК) */
  body.light .logo-oval {
    background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
  }

    body.light .logo-oval:hover {
      border-color: rgba(37, 99, 235, 0.3);
      box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    }
  }
}

@media (max-width: 768px) {
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    
    margin: 0;
    padding: 0;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.light .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(0);
  }

  .mobile-menu.active {
    right: 0;
  }

  body.light .mobile-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  body.light .mobile-menu-header {
    background: rgba(255, 255, 255, 0.5);
    border-bottom-color: rgba(229, 231, 235, 0.5);
  }

  .mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #64FFDA;
    letter-spacing: -0.02em;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  body.light .mobile-menu-title {
    color: #2563eb;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(107, 114, 128, 0.2);
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(100, 255, 218, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  .mobile-menu-close:hover,
  .mobile-menu-close:active {
    background: rgba(107, 114, 128, 0.3);
    color: #64FFDA;
    transform: scale(1.05);
  }

  body.light .mobile-menu-close {
    background: rgba(229, 231, 235, 0.5);
    color: #6b7280;
  }

  body.light .mobile-menu-close:hover,
  body.light .mobile-menu-close:active {
    background: rgba(229, 231, 235, 0.7);
    color: #2563eb;
  }

  .mobile-menu-nav {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
  }

  .mobile-menu-item:hover {
    color: #64FFDA;
    border-left-color: #64FFDA;
    background: rgba(100, 255, 218, 0.05);
    transform: translateX(4px);
  }

  .mobile-menu-item:active {
    color: #64FFDA;
    border-left-color: #64FFDA;
    background: rgba(100, 255, 218, 0.15);
    transform: translateX(2px);
  }

  body.light .mobile-menu-item {
    color: #4b5563;
  }

  body.light .mobile-menu-item:hover {
    color: #2563eb;
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
  }

  body.light .mobile-menu-item:active {
    color: #2563eb;
    border-left-color: #2563eb;
    background: rgba(37, 99, 235, 0.15);
  }

  .mobile-menu-item-special {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    background: rgba(100, 255, 218, 0.05);
    border-left: 3px solid #64FFDA;
  }

  body.light .mobile-menu-item-special {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.05);
    border-left-color: #2563eb;
  }

  .mobile-menu-item-special:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.5);
  }

  body.light .mobile-menu-item-special:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.5);
  }

  .mobile-menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #64FFDA;
    flex-shrink: 0;
  }

  body.light .mobile-menu-icon {
    color: #2563eb;
  }

  .mobile-menu-item:hover .mobile-menu-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
  }

}


@media (min-width: 769px) {
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
}

.theme-icon-moon,
.theme-icon-sun {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-moon.hidden,
.theme-icon-sun.hidden {
  display: none !important;
}


.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

.delay-500 {
  transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.theme-toggle-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 100;
  pointer-events: auto;
  touch-action: manipulation;
}

.theme-toggle-desktop:focus-visible {
  outline: 2px solid #64FFDA;
  outline-offset: 2px;
  border-radius: 4px;
}

body.light .theme-toggle-desktop:focus-visible {
  outline-color: #2563eb;
  -webkit-tap-highlight-color: rgba(100, 255, 218, 0.2);
}

.theme-toggle-desktop .theme-icon-moon-desktop {
  color: #ffffff;
}

.theme-toggle-desktop .theme-icon-sun-desktop {
  width: 1.25rem;
  height: 1.25rem;
  color: #ffffff;
}

body.light .theme-toggle-desktop .theme-icon-moon-desktop {
  color: #1f2937;
}

body.light .theme-toggle-desktop .theme-icon-sun-desktop {
  color: #1f2937;
}


body.light {
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
  color: #1f2937;
}

body.light .bg-gradient-dark {
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
}

body.light .text-gray-100,
body.light .text-gray-300,
body.light .text-gray-400,
body.light .text-gray-500 {
  color: #1f2937;
}

/* Более специфичные стили для text-gray-300 и text-gray-400 */
body.light .text-gray-300 {
  color: #4b5563 !important;
}

body.light .text-gray-400 {
  color: #6b7280 !important;
}

body.light .text-cyan-400 {
  color: #2563eb !important;
}

/* Адаптация Hero секции для светлой темы */
body.light .hero-section h1 .text-white {
  color: #1f2937 !important;
}

body.light .hero-section [class*="text-cyan-400"] {
  color: #2563eb !important;
}

/* Адаптация разделителя для светлой темы */
body.light .hero-section [class*="via-cyan-400"] {
  background-image: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.5), transparent) !important;
}

/* Адаптация кнопки "Узнать больше" для светлой темы */
body.light .hero-section .btn-secondary {
  border-color: rgba(37, 99, 235, 0.4) !important;
  color: #2563eb !important;
}

body.light .hero-section .btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.6) !important;
}

/* Адаптация border-cyan-600 для светлой темы */
body.light [class*="border-cyan-600"] {
  border-color: rgba(37, 99, 235, 0.5) !important;
}

/* Адаптация hover:bg-cyan-900/30 для светлой темы */
body.light [class*="hover:bg-cyan-900"]:hover {
  background-color: rgba(37, 99, 235, 0.1) !important;
}

/* Адаптация всех секций с bg-gray для светлой темы */
body.light [class*="bg-gray-900"] {
  background-color: rgba(249, 250, 251, 0.5) !important;
}

body.light [class*="bg-gray-800"] {
  background-color: rgba(243, 244, 246, 0.6) !important;
}

/* Адаптация border-gray для светлой темы */
body.light [class*="border-gray-700"] {
  border-color: rgba(209, 213, 219, 0.5) !important;
}

body.light [class*="border-gray-800"] {
  border-color: rgba(229, 231, 235, 0.6) !important;
}

/* Дополнительные стили для светлой темы - профессиональный вид */
body.light .hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* Адаптация карточек для светлой темы */
body.light .card-hover {
  background-color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(229, 231, 235, 0.8) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

body.light .card-hover:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Адаптация заголовков секций */
body.light h2,
body.light h3 {
  color: #1f2937 !important;
}

/* Адаптация иконок ОС для светлой темы - уже есть в коде, но проверяем */

body.light > header:not(article > header),
body.light header:not(article > header)[class*="bg-gray-900"],
body.light header:not(article > header).bg-gray-900\/80,
body.light header.sticky:not(article > header),
body.light header:not(article > header)[class*="sticky"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(249, 250, 251, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.light .bg-gray-900\/80 {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

body.light .bg-gray-800\/50 {
  background-color: rgba(249, 250, 251, 0.7);
}

body.light .border-gray-800 {
  border-color: #e5e7eb;
}

body.light .border-gray-700 {
  border-color: #d1d5db;
}

body.light #remote-programs {
  background-color: rgba(243, 244, 246, 0.7);
}

body.light .section-bg {
  background-color: rgba(249, 250, 251, 0.6);
}

body.light .os-icon-windows {
  color: #0078d7;
}

body.light .os-icon-linux {
  color: #f05033;
}

body.light .os-icon-apple {
  color: #a2aaad;
}

body.light .os-icon:hover {
  transform: scale(1.15);
}

body.light .os-icon-windows:hover {
  color: #00a4f0;
}

body.light .os-icon-linux:hover {
  color: #ff6b4a;
}

body.light .os-icon-apple:hover {
  color: #c8d0d3;
}

body.light .btn-primary {
  background-color: #2563eb;
  color: #fff;
}

body.light .btn-primary:hover {
  background-color: #1d4ed8;
}

body.light .btn-primary:focus-visible {
  outline-color: #2563eb;
}

body.light .btn-secondary {
  border-color: #2563eb;
  color: #2563eb;
}

body.light .btn-secondary:hover {
  background-color: rgba(37, 99, 235, 0.1);
  border-color: #2563eb;
}

body.light .btn-secondary:focus-visible {
  outline-color: #2563eb;
}

body.light .nav-link {
  color: #4b5563;
}

body.light .nav-link:hover {
  color: #2563eb !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(249, 250, 251, 0.8) 100%);
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

/* Светлая тема - только для ПК версии */
@media (min-width: 768px) {
  body.light .nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 12px 0 rgba(37, 99, 235, 0.15);
  }
}

body.light .card-hover:hover {
  border-color: #2563eb !important;
}

body.light #contact-options p {
  color: #1f2937;
}

body.light .text-gray-500 {
  color: #6b7280;
}




body.light .site-footer {
  background-color: rgba(255, 255, 255, 0.5) !important;
  border-top-color: #e5e7eb !important;
}

body:not(.light) .site-footer {
  background-color: #1f2938 !important; 
  border-top-color: #374151 !important; 
}

body.light .site-footer .text-gray-500 {
  color: #6b7280 !important;
}

body:not(.light) .site-footer .text-gray-500 {
  color: #9ca3af !important; 
}

body.light .site-footer .text-cyan-400 {
  color: #2563eb !important;
}

body:not(.light) .site-footer .text-cyan-400 {
  color: #64FFDA !important; 
}


.master-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #64FFDA;
  border-radius: 8px;
  color: #64FFDA !important;
  font-weight: 500;
  font-size: .875rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.master-link:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-1px);
}

body.light .master-link {
  color: #2563eb !important;
  border-color: #2563eb;
}

body.light .master-link:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
  .master-link {
    font-size: .8125rem;
    padding: 5px 10px;
  }
}

.scroll-to-top {
  position: fixed !important;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #0a192f 0%, #0d2438 100%);
  border: 2px solid rgba(100, 255, 218, 0.3);
  border-radius: 12px;
  color: #64FFDA;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 
    0 0 20px rgba(100, 255, 218, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(100, 255, 218, 0.2),
    inset 0 -2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  overflow: hidden;
}

.scroll-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.scroll-to-top.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.scroll-to-top:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(100, 255, 218, 0.6);
  box-shadow: 
    0 0 30px rgba(100, 255, 218, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(100, 255, 218, 0.3),
    inset 0 -2px 8px rgba(0, 0, 0, 0.5);
  color: #64FFDA;
}

.scroll-to-top:hover::before {
  opacity: 1;
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 0 15px rgba(100, 255, 218, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 48px;
    height: 48px;
    right: 18px;
    bottom: 18px;
    font-size: 1.2rem;
  }
}

/* Светлая тема - стиль игровой клавиатуры */
body.light .scroll-to-top {
  background: linear-gradient(145deg, #ffffff 0%, #f3f4f6 100%);
  border: 2px solid rgba(37, 99, 235, 0.3);
  color: #2563eb;
  box-shadow: 
    0 0 20px rgba(37, 99, 235, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 8px rgba(0, 0, 0, 0.1);
}

body.light .scroll-to-top::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

body.light .scroll-to-top:hover {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 
    0 0 30px rgba(37, 99, 235, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 8px rgba(0, 0, 0, 0.15);
  color: #1d4ed8;
}

body.light .scroll-to-top:active {
  box-shadow: 
    0 0 15px rgba(37, 99, 235, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

header:not(article > header),
body > header:not(article > header),
header.sticky:not(article > header),
header[class*="sticky"]:not(article > header) {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

body:not(.light) header.sticky:not(article > header),
body:not(.light) header[class*="sticky"]:not(article > header) {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.85) 0%, rgba(13, 36, 56, 0.85) 100%) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  border-bottom: none !important;
}

article > header {
  position: static !important;
  margin-bottom: 2rem;
}

.prose {
  color: inherit;
}

.prose-invert {
  color: #d1d5db;
}

body.light .prose-invert {
  color: #1f2937;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.prose p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.prose ul,
.prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.5rem 0;
}

.prose a {
  color: #64FFDA;
  text-decoration: underline;
}

body.light .prose a {
  color: #2563eb;
}

.prose code {
  background-color: rgba(100, 255, 218, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

body.light .prose code {
  background-color: rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
  header:not(article > header),
  body > header:not(article > header),
  header.sticky:not(article > header),
  header[class*="sticky"]:not(article > header) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    
    background: rgba(31, 41, 55, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(107, 114, 128, 0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }
  
  
  body.mobile-menu-open header:not(article > header),
  body.mobile-menu-open body > header:not(article > header),
  body.mobile-menu-open header.sticky:not(article > header),
  body.mobile-menu-open header[class*="sticky"]:not(article > header) {
    z-index: 40 !important; 
  }
  
  body.light header:not(article > header),
  body.light body > header:not(article > header),
  body.light header.sticky:not(article > header),
  body.light header[class*="sticky"]:not(article > header) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(249, 250, 251, 0.85) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: none !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }
  
  
  body > section:first-of-type {
    padding-top: 85px !important;
  }
  
  body > main:first-of-type,
  body > main.container {
    padding-top: 85px !important;
  }
  
  body > .page-wrapper:first-of-type {
    padding-top: 85px !important;
  }
  
  
  body > .page-wrapper:first-of-type > main {
    padding-top: 0 !important;
  }

  
  header:not(article > header).header-hidden,
  body > header:not(article > header).header-hidden,
  header.sticky:not(article > header).header-hidden,
  header[class*="sticky"]:not(article > header).header-hidden {
    
    transform: translateY(0) !important;
  }
  
  .scroll-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 1.3rem !important;
    border-radius: 10px !important;
    z-index: 999 !important;
    position: fixed !important;
  }
  
  .scroll-to-top.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  
  body.mobile-menu-open .scroll-to-top,
  body.mobile-menu-open .scroll-to-top.show {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
  }

  /* Мобильный glass-стиль для кнопок как на ПК */
  .btn-glass.btn-primary {
    background: #22D3EE !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 9999px !important;
    box-shadow: 0 6px 22px rgba(34, 211, 238, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #0a192f !important;
  }

  .btn-glass.btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(100, 255, 218, 0.25) !important;
    border-radius: 9999px !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body.light .btn-glass.btn-primary {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #2563eb !important;
  }

  body.light .btn-glass.btn-secondary {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.85);
    color: #2563eb !important;
  }

  /* Карточки — чуть более «премиальный» вид на мобильных */
  .card-hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    border-color: rgba(100, 255, 218, 0.18);
  }

  body.light .card-hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
  }

  .card-hover:active {
    transform: translateY(-2px);
  }

  /* Типографика и ритм секций ближе к ПК-версии */
  #hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  #hero-section p {
    font-size: 1.05rem;
    line-height: 1.6;
  }

  section h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
  }

  section h3 {
    font-size: 1.2rem;
  }

  .mobile-menu-item {
    font-size: 1.05rem;
    padding: 1.1rem 1.5rem;
  }

  /* Гармоничные отступы секций */
  section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  #hero-section .hero-content {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  /* Карточки услуг и бизнес-блоки */
  #services .card-hover,
  #remote-programs .card-hover,
  #pricing .bg-gray-800\/50,
  #contact-options .card-hover {
    border-radius: 18px;
  }

  #services .card-hover h3,
  #remote-programs h3 {
    font-size: 1.1rem;
  }

  /* Блок цен — больше воздуха и читабельности */
  #pricing .bg-gray-800\/50 {
    padding: 1.5rem !important;
  }

  #pricing p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Контакты — карточки крупнее и читаемее */
  #contact-options .card-hover {
    padding: 1.5rem !important;
  }

  #contact-options h3 {
    font-size: 1.15rem;
  }

  /* Футер — аккуратное выравнивание и текст */
  footer .container {
    gap: 1rem;
  }

  footer h3 {
    font-size: 1.25rem;
  }

  footer p,
  footer a {
    font-size: 0.95rem;
  }
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  position: relative;
}

.loading-spinner::before,
.loading-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
}

.loading-spinner::before {
  border-top-color: #64FFDA;
  border-right-color: rgba(100, 255, 218, 0.3);
  animation: spin 1s linear infinite;
}

.loading-spinner::after {
  border-bottom-color: #00BCD4;
  border-left-color: rgba(0, 188, 212, 0.3);
  animation: spin 1.2s linear infinite reverse;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

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

.loading-spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  width: 100%;
}

.loading-spinner-large {
  width: 60px;
  height: 60px;
}

.loading-spinner-large::before,
.loading-spinner-large::after {
  border-width: 4px;
}

.loading-spinner-small {
  width: 30px;
  height: 30px;
}

.loading-spinner-small::before,
.loading-spinner-small::after {
  border-width: 2px;
}

body.light .loading-spinner::before {
  border-top-color: #2563eb;
  border-right-color: rgba(37, 99, 235, 0.3);
}

body.light .loading-spinner::after {
  border-bottom-color: #1d4ed8;
  border-left-color: rgba(29, 78, 216, 0.3);
}