


body.preloader-active {
  overflow: hidden !important;
  height: 100vh !important;
}


.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0c1016;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

body.light-theme .preloader {
  background: #fafafa;
}


.preloader__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transition: width 0.4s ease;
  z-index: 1;
}

body.light-theme .preloader__progress {
  background: linear-gradient(90deg, transparent, #0d1119, transparent);
}


.preloader__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}


.preloader__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__logo-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  animation: preloaderGlowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

body.light-theme .preloader__logo-glow {
  background: radial-gradient(circle, rgba(0,0,0,0.04) 0%, transparent 70%);
}

@keyframes preloaderGlowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}


.preloader__text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}


.preloader__brand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  display: flex;
  align-items: baseline;
  user-select: none;
  -webkit-user-select: none;
}

body.light-theme .preloader__brand {
  color: #0d1119;
}

.preloader__brand span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation: preloaderLetterIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.preloader__brand span:nth-child(1)  { animation-delay: 0.1s; }
.preloader__brand span:nth-child(2)  { animation-delay: 0.15s; }
.preloader__brand span:nth-child(3)  { animation-delay: 0.2s; }
.preloader__brand span:nth-child(4)  { animation-delay: 0.25s; }
.preloader__brand span:nth-child(5)  { animation-delay: 0.3s; }
.preloader__brand span:nth-child(6)  { animation-delay: 0.35s; }
.preloader__brand span:nth-child(7)  { animation-delay: 0.4s; }

.preloader__brand span:nth-child(8)  { animation-delay: 0.45s; }
.preloader__brand span:nth-child(9)  { animation-delay: 0.5s; }
.preloader__brand span:nth-child(10) { animation-delay: 0.55s; }

@keyframes preloaderLetterIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


.preloader__brand-dot {
  color: #2e456c !important;
  animation-delay: 0.5s !important;
  margin: 0 0.05em;
}

body.light-theme .preloader__brand-dot {
  color: #b6bac0 !important;
}


.preloader[data-type="page"] .preloader__brand {
  font-size: 2.8rem;
  letter-spacing: 0.2em;
}

.preloader[data-type="page"] .preloader__logo-glow {
  width: 140px;
  height: 140px;
}


.preloader__line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #263652, transparent);
  animation: preloaderLineExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

body.light-theme .preloader__line {
  background: linear-gradient(90deg, transparent, #c9cbcf, transparent);
}

@keyframes preloaderLineExpand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 200px;
    opacity: 1;
  }
}


.preloader__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #2e456c;
  opacity: 0;
  animation: preloaderSubIn 0.8s ease 0.8s forwards;
}

body.light-theme .preloader__subtitle {
  color: #9096a2;
}

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


.preloader.preloader--hidden {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(10px);
  pointer-events: none;
}


.preloader.preloader--gone {
  display: none !important;
}


@media (max-width: 768px) {
  .preloader__brand {
    font-size: 2.8rem;
    letter-spacing: 0.2em;
  }

  .preloader__logo-glow {
    width: 140px;
    height: 140px;
  }

  @keyframes preloaderLineExpand {
    from {
      width: 0;
      opacity: 0;
    }
    to {
      width: 140px;
      opacity: 1;
    }
  }
}

@media (max-width: 480px) {
  .preloader__brand {
    font-size: 2rem;
    letter-spacing: 0.15em;
  }

  .preloader__logo-glow {
    width: 100px;
    height: 100px;
  }

  @keyframes preloaderLineExpand {
    from {
      width: 0;
      opacity: 0;
    }
    to {
      width: 100px;
      opacity: 1;
    }
  }
}




* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, .nav-logo, .box-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hero h1 {
    letter-spacing: -0.03em;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}



body {
    opacity: 1;
    animation: pageIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageIn {
    from { 
        opacity: 0;
        transform: scale(0.98);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}


nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation-fill-mode: forwards !important;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}


.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }
.reveal:nth-child(7) { transition-delay: 0.7s; }
.reveal:nth-child(8) { transition-delay: 0.8s; }



button, .btn-submit, .btn-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

button:hover, .btn-submit:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-card:hover {
    
}

button:active, .btn-submit:active {
    transform: translateY(-1px) scale(0.98) !important;
    transition: all 0.1s ease;
}


.btn-buy {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


.btn-buy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.btn-buy:hover::before {
    left: 100%;
}

.btn-buy:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}


@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1),
                    0 0 40px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.2),
                    0 0 60px rgba(255, 255, 255, 0.1);
    }
}



input {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

input:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06),
                0 8px 24px rgba(0, 0, 0, 0.4);
}

input:hover:not(:focus) {
    border-color: #212e45;
    transform: translateY(-1px);
}



.card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
    transform-style: preserve-3d;
}

.card:hover {
    
}





.card.featured {
    animation: featuredPulse 3s ease-in-out infinite;
}

.card.featured:hover {
    
}

@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 30px 2px rgba(255, 255, 255, 0.08);
    }
}



.info-block, .sub-block {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.info-block:hover, .sub-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.info-block:hover::after, .sub-block:hover::after {
    left: 100%;
}

.info-row {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-row:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 2rem;
    transform: translateX(8px);
}



nav {
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}




nav .nav-links a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}





.nav-logo,
a.nav-logo,
nav .nav-logo,
nav a.nav-logo {
    transition: color 0.3s ease !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 1000 !important;
    color: var(--text-primary) !important;
    pointer-events: auto !important;
}


.nav-logo:hover,
.nav-logo:focus,
.nav-logo:active,
.nav-logo:visited,
a.nav-logo:hover,
a.nav-logo:focus,
a.nav-logo:active,
a.nav-logo:visited,
nav .nav-logo:hover,
nav .nav-logo:focus,
nav .nav-logo:active,
nav .nav-logo:visited,
nav a.nav-logo:hover,
nav a.nav-logo:focus,
nav a.nav-logo:active,
nav a.nav-logo:visited {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    transform: none !important;
    filter: none !important;
    text-shadow: none !important;
    color: var(--text-primary) !important;
    background: transparent !important;
    pointer-events: auto !important;
    transition: color 0.3s ease !important;
    animation: none !important;
}


.nav-logo::before,
.nav-logo::after,
a.nav-logo::before,
a.nav-logo::after {
    display: none !important;
    content: none !important;
}



.feature-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateX(12px) translateY(-4px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-item .tag {
    transition: all 0.3s ease;
}

.feature-item:hover .tag {
    color: #7b8595;
    letter-spacing: 0.35em;
}



.hero h1 {
    animation: heroIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.1),
                 0 4px 0 #000,
                 0 8px 20px rgba(0, 0, 0, 0.5);
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        letter-spacing: 0.5em;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.15em;
    }
}


.hero h1:hover {
    transform: scale(1.02);
    text-shadow: 0 0 120px rgba(255, 255, 255, 0.2),
                 0 4px 0 #000,
                 0 12px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}



.scroll-arrow {
    animation: bounceImproved 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    will-change: transform;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    transform: translateY(4px) scale(1.2);
    color: #a3a8b1;
}

@keyframes bounceImproved {
    0%, 100% { 
        transform: translateY(0);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(12px);
        opacity: 1;
    }
}



.page-leaving {
    animation: pageOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageOut {
    from { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to { 
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
}



.btn-submit, .btn-buy, .btn-card {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transform: scale(0);
    animation: rippleAnim 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

@keyframes rippleAnim {
    to { 
        transform: scale(5);
        opacity: 0;
    }
}




.avatar {
    animation: float 6s ease-in-out infinite;
}

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


.hero-badge {
    animation: badgeSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes badgeSlide {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


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

.gradient-bg {
    background: linear-gradient(135deg, #0d1119, #17202e, #0d1119);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}


@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.star {
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(2n) {
    animation-delay: 0.5s;
    animation-duration: 4s;
}

.star:nth-child(3n) {
    animation-delay: 1s;
    animation-duration: 5s;
}


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

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(40) 1s forwards;
}


.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #fff, #7b8595);
    transform-origin: left;
    z-index: 99;
    transition: transform 0.1s ease;
    pointer-events: none;
}


.parallax {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


img {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d1119;
}

::-webkit-scrollbar-thumb {
    background: #1a2334;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #212e45;
}


.list-item {
    animation: listSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

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

@keyframes listSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.glow-text:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(255, 255, 255, 0.3);
    transition: text-shadow 0.3s ease;
}


.rotate-on-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotate-on-hover:hover {
    transform: rotate(360deg);
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.5s ease;
}


.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

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



.ui-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.12) 45%,
    transparent 70%);
  transform: scale(0);
  animation: ui-ripple-anim 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

body.light-theme .ui-ripple {
  background: radial-gradient(circle,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.08) 45%,
    transparent 70%);
}

@keyframes ui-ripple-anim {
  to {
    transform: scale(1);
    opacity: 0;
  }
}


nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body.light-theme nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}


nav a.nav-active {
  color: var(--text-primary) !important;
}


.ui-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.ui-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.light-theme .ui-toast {
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
}


::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.light-theme ::selection {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}


*:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
}

body.light-theme *:focus-visible {
  outline-color: rgba(0, 0, 0, 0.25);
}


.lang-switch button:focus-visible,
.lang-switch button:focus,
#btn-en:focus-visible,
#btn-en:focus,
#btn-ru:focus-visible,
#btn-ru:focus {
  outline: none !important;
  box-shadow: none !important;
}




* {
  
  scrollbar-width: none;
}

body.light-theme * {
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  background-clip: padding-box;
}

body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  background-clip: padding-box;
}

body.light-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
  background-clip: padding-box;
}



.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    var(--text-primary, #fff),
    var(--text-primary, #fff),
    transparent);
  width: 0%;
  z-index: 1000;
  pointer-events: none;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

body.light-theme .scroll-progress {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}





nav.scrolled {
  
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}


nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

nav.scrolled::after {
  opacity: 1;
}

body.light-theme nav::after {
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.08) 80%,
    transparent);
}



img {
  opacity: 0;
  animation: image-fade-in 0.6s ease-out forwards;
}

img[loading="eager"],
.no-fade {
  animation: none;
  opacity: 1;
}

@keyframes image-fade-in {
  to { opacity: 1; }
}




.btn-submit,
.btn-buy,
.btn-card,
.theme-toggle,
.back {
  will-change: transform, box-shadow;
}



.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
  margin: 2rem 0;
}

body.light-theme .divider {
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent);
}



h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}



footer {
  position: relative;
  opacity: 0.75;
  transition: opacity 0.3s ease;
  font-size: 0.65rem !important;
  padding: 3rem 1.5rem 2.5rem !important;
  width: 100%;
}

footer:hover {
  opacity: 1;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.08) 15%, 
    rgba(255, 255, 255, 0.08) 85%, 
    transparent 100%
  );
}

body.light-theme footer::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.25) 15%, 
    rgba(0, 0, 0, 0.25) 85%, 
    transparent 100%
  );
}

footer a,
footer span {
  font-size: 0.65rem !important;
}

@media (max-width: 768px) {
  footer {
    font-size: 0.58rem !important;
    padding: 2rem 1rem 1.5rem !important;
  }
  footer a,
  footer span {
    font-size: 0.58rem !important;
  }
}



a:not(.nav-logo):not(.back):not(.btn):not(.btn-buy):not(.btn-submit):not(.btn-card):not(nav a) {
  transition: color 0.2s ease, opacity 0.2s ease;
}



.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--text-primary, #fff);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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



.hero h1 {
  
  letter-spacing: -0.02em;
}



.card,
.info-block,
.sub-block {
  
  will-change: transform, box-shadow, background;
  transform: translateZ(0);
  backface-visibility: hidden;
}



input:focus,
textarea:focus,
select:focus {
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background-color 0.3s ease !important;
}



body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

body.light-theme::before {
  opacity: 0.02;
}



.nav-links a:not(.nav-logo),
.back,
.footer-link a {
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease !important;
}



.hero-badge {
  position: relative;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: badge-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0;
  }
}



input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  cursor: text;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}



@media (max-width: 768px) {
  body::before {
    display: none; 
  }
  
  .scroll-progress {
    display: none; 
  }
}



@media print {
  nav, footer, #bg, .scroll-progress, .ui-toast, body::before {
    display: none !important;
  }
}



.hero h1 {
  animation: hero-text-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-sub,
.hero p,
.hero-badge {
  animation: hero-sub-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero .btn-buy,
.hero button {
  animation: hero-sub-in 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes hero-text-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hero-sub-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 992px) {
  .footer-separator {
    display: none !important;
  }
}




body.light-theme .card,
body.light-theme .feature-block,
body.light-theme .form-box,
body.light-theme .info-block,
body.light-theme .sub-block,
body.light-theme .account-card,
body.light-theme .modal-content,
body.light-theme .status-card,
body.light-theme .news-card {
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    background: #ffffff !important;
}


body.light-theme nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2) !important;
    background: rgba(248, 248, 248, 0.95) !important;
}


body.light-theme .field input,
body.light-theme input[type="text"],
body.light-theme input[type="password"],
body.light-theme input[type="email"] {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: #f4f4f4 !important;
    color: #121822 !important;
}

body.light-theme .field input:focus,
body.light-theme input:focus {
    border: 1px solid rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}


body.light-theme footer,
body.light-theme footer span,
body.light-theme footer a,
body.light-theme footer span[data-i18n="footer"] {
    color: #1c273a !important;
}

body.light-theme .footer-separator {
    color: #1c273a !important;
    opacity: 0.3 !important;
}




.card,
.feature-block,
.form-box,
.info-block,
.sub-block,
.account-card,
.modal-content,
.status-card,
.news-card {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.015) !important;
}


body.light-theme .card,
body.light-theme .feature-block,
body.light-theme .form-box,
body.light-theme .info-block,
body.light-theme .sub-block,
body.light-theme .account-card,
body.light-theme .modal-content,
body.light-theme .status-card,
body.light-theme .news-card {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}





body {
  line-height: 1.6;
  overflow-x: hidden;
}






.btn-card {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-card:hover {
  background: #3d5a8f;
  transform: translateY(-4px) scale(1.02);
}


.theme-toggle svg {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

body.light-theme .theme-toggle .sun-icon { opacity: 1; transform: rotate(0deg) scale(1); }
body.light-theme .theme-toggle .moon-icon { opacity: 0; transform: rotate(90deg) scale(0); }


.scroll-top {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: background 0.3s, transform 0.2s, opacity 0.3s;
}
.scroll-top:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}


.hero {
  background: radial-gradient(circle at 50% 30%, var(--bg-secondary) 0%, var(--bg-primary) 80%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(255,255,255,0.02) 0%, transparent 70%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.02) 0%, transparent 70%);
  pointer-events: none;
}


@media (max-width: 768px) {
  .card {
    width: 100% !important;
    max-width: 340px;
  }
  .hero h1 { font-size: 4rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 3rem; }
  .btn-card { padding: 0.8rem 2rem; font-size: 0.8rem; }
}


.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


footer {
  color: var(--text-secondary);
  background: transparent;
  padding: 2rem 0;
}


body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}


#bg {
  background: var(--bg-primary);
}


nav {
  color: var(--text-primary);
}


.hero h1,
.hero-label,
.hero-badge {
  color: var(--text-primary);
}



.reference-nav {
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  max-width: calc(100% - 24px);
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate(-50%, -16px) scale(.965) !important;
  filter: blur(6px);
  animation: none !important;
  transition: opacity .42s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1), filter .36s ease, visibility 0s linear .5s, box-shadow .28s ease, background .28s ease !important;
  margin: 0 auto;
  height: 50px;
  padding: 0 9px 0 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 28px;
  background: rgba(18, 18, 22, .72) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}



.reference-nav.scrolled {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, 0) scale(1) !important;
  filter: blur(0);
  transition-delay: 0s !important;
}

body.light-theme .reference-nav__divider {
  background: #111;
}
.reference-nav__links,
.reference-nav__brand,
.reference-nav__item,
.reference-nav__login,
.reference-nav__language,
.reference-nav__lang-current {
  display: flex;
  align-items: center;
}

.reference-nav__brand-wrap { min-width: 0; gap: 16px; }
.reference-nav__brand {
  gap: 9px;
  color: #f5f6fa !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.reference-nav__brand-mark {
  width: 15px;
  height: 15px;
  border: 2px solid #8d7cff;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(141,124,255,.24);
}
.reference-nav__divider {
  width: 1px;
  height: 23px;
  background: rgba(255,255,255,.09);
  flex: 0 0 auto;
}

body:not(.light-theme) .reference-nav__brand-wrap {
  display: flex;
  align-items: center;
}

body:not(.light-theme) .reference-nav__brand-wrap > .reference-nav__divider {
  display: block;
  width: 1px;
  height: 23px;
  background: rgba(255,255,255,.22);
  box-shadow: 0 0 8px rgba(255,255,255,.08);
  flex: 0 0 1px;
}
.reference-nav__links { gap: 2px; min-width: 0; }
.reference-nav__item {
  gap: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  color: rgba(190,193,203,.68) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.reference-nav__item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reference-nav__item:hover {
  color: #f2f3f6 !important;
  background: rgba(255,255,255,.045);
}
.reference-nav__divider--inner { margin: 0 5px 0 7px; height: 22px; }
.reference-nav__theme {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  margin: 0 1px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(190,193,203,.65);
  box-shadow: none !important;
}
.reference-nav__theme:hover { color: #fff; transform: none !important; }
.reference-nav__theme .sun-icon { opacity: 0; transform: rotate(-90deg) scale(0); }
.reference-nav__theme .moon-icon { opacity: 1; transform: rotate(0) scale(1); }
body.light-theme .reference-nav__theme .sun-icon { opacity: 1; transform: rotate(0) scale(1); }
body.light-theme .reference-nav__theme .moon-icon { opacity: 0; transform: rotate(90deg) scale(0); }

.reference-nav__language { position: relative; }
.reference-nav__lang-current {
  gap: 5px;
  border: 0;
  background: transparent;
  color: rgba(190,193,203,.72);
  cursor: pointer;
  padding: 8px 9px;
  font: 600 12px/1 inherit;
}
.reference-nav__lang-current:hover { color: #fff; }
.reference-nav__lang-current svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.reference-nav__lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 66px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(18,18,22,.94);
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.reference-nav__language.open .reference-nav__lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.reference-nav__lang-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(210,212,220,.7);
  padding: 7px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.reference-nav__lang-menu button:hover { color: #fff; background: rgba(255,255,255,.06); }

.reference-nav__login {
  justify-content: center;
  gap: 7px;
  min-width: 82px;
  height: 34px;
  padding: 0 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.045) !important;
  color: #f4f4f6 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.reference-nav__login::before { content: '↪'; font-size: 15px; line-height: 1; }
.reference-nav__login:hover {
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #fff !important;
}
.reference-nav .btn-account { margin-left: 0; }

body.light-theme .reference-nav {
  background: rgba(248,249,251,.78) !important;
  border-color: rgba(0,0,0,.09) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.8);
}
body.light-theme .reference-nav__brand { color: #15171c !important; }
body.light-theme .reference-nav__item,
body.light-theme .reference-nav__lang-current,
body.light-theme .reference-nav__theme { color: rgba(35,39,48,.64) !important; }
body.light-theme .reference-nav__item:hover,
body.light-theme .reference-nav__lang-current:hover,
body.light-theme .reference-nav__theme:hover { color: #111 !important; }
body.light-theme .reference-nav__login { color: #15171c !important; background: rgba(0,0,0,.035) !important; border-color: rgba(0,0,0,.1) !important; }

@media (max-width: 760px) {
  .reference-nav { max-width: calc(100% - 24px); }
  .reference-nav__item span { display: none; }
  .reference-nav__item { padding: 8px; }
  .reference-nav__divider--inner { display: none; }
  .reference-nav__theme { display: none !important; }
  .reference-nav__brand-wrap { gap: 10px; }
  .reference-nav__login { min-width: 72px; padding: 0 11px !important; }
}


.reference-nav {
  justify-content: flex-start;
  flex-shrink: 0;
}
.reference-nav__brand-wrap {
  gap: 10px;
}
.reference-nav__links {
  margin-left: 0 !important;
}


.reference-nav .reference-nav__brand-wrap {
  gap: 12px !important;
}
.reference-nav .reference-nav__divider:not(.reference-nav__divider--inner) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.light-theme .reference-nav__brand-wrap {
  border-right: 1px solid #111 !important;
  padding-right: 12px !important;
  margin-right: 0 !important;
}
body.light-theme .reference-nav__brand-wrap > .reference-nav__divider {
  display: none !important;
}
body.light-theme .showcase::before,
body.light-theme .pricing::before {
  background: rgba(255,255,255,.62) !important;
}
body.light-theme #bg {
  opacity: 1 !important;
}
