/* Base Styles */
:root {
  --primary-500: #643CF4;
  --primary-400: #8266F6;
  --primary-600: #4D2FD1;
  --bg-900: #0A0A0F;
  --bg-800: #121218;
  --bg-700: #1A1A24;
  --bg-600: #242430;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8C5;
  --text-tertiary: #7E7E8F;
  --border-700: #2D2D3A;
  --border-600: #3A3A4A;
  --accent-green: #2BAD72;
  --accent-red: #E74C3C;
  --accent-blue: #0BACE6;
  --header-height: 60px;
  --mobile-breakpoint: 768px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-primary: 0 0 15px rgba(100, 60, 244, 0.5);
  --dark-bg: rgba(30, 30, 30, 0.9);
  --animation-duration: 0.8s;
  --easing-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --padding-mobile-menu: 50px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  ::-webkit-scrollbar { width: 0;}
}

::selection {
  background: var(--primary-500);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary-500);
  color: #ffffff;
}

body {
  background-color: var(--bg-900);
  color: var(--text-primary);
  font-family: 'Jura', 'Arial Narrow', Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  position: relative;
  flex-direction: column;
}

#svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* Header Styles */
.top-header {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 5%;
  background-color: var(--bg-700);
  z-index: 100;
}

.logotype {
  width: 70px;
  height: 70px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3c?xml version='1.0' standalone='no'?%3e%3c!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 20010904//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3e%3csvg version='1.0' xmlns='http://www.w3.org/2000/svg' width='1024.000000pt' height='1024.000000pt' viewBox='0 0 1024.000000 1024.000000' preserveAspectRatio='xMidYMid meet'%3e%3cg transform='translate(0.000000,1024.000000) scale(0.100000,-0.100000)' fill='%23643CF4' stroke='none'%3e%3cpath d='M2811 8239 c-336 -44 -615 -294 -704 -629 l-22 -85 0 -1725 c0 -1930 -4 -1805 72 -2045 119 -377 363 -691 713 -918 202 -131 1577 -955 1675 -1005 178 -88 370 -132 585 -132 152 0 265 16 392 56 162 51 157 49 923 512 1069 647 1046 632 1221 807 245 244 387 509 466 866 l23 104 0 1740 0 1740 -22 85 c-46 175 -152 341 -285 449 -77 63 -216 133 -323 163 l-80 23 -2285 1 c-1257 1 -2314 -2 -2349 -7z m4640 -339 c163 -51 283 -162 342 -318 l22 -57 0 -1740 c0 -1666 -1 -1743 -19 -1820 -84 -362 -273 -632 -589 -843 -40 -27 -291 -180 -559 -342 l-487 -293 -233 174 c-128 96 -270 202 -315 237 l-83 63 0 713 0 712 228 154 c125 85 312 212 415 282 104 71 195 132 203 135 12 4 14 -34 14 -264 0 -429 -7 -443 -326 -680 l-184 -136 0 -415 c0 -330 3 -412 13 -405 6 6 55 43 107 83 297 229 653 513 708 564 146 137 257 317 304 496 22 85 22 87 25 1018 2 512 1 932 -2 932 -3 0 -80 -50 -172 -111 -615 -412 -1150 -757 -1246 -805 -300 -152 -641 -161 -946 -26 -102 45 -159 82 -1154 739 -170 111 -310 203 -313 203 -2 0 -4 -399 -4 -887 0 -738 3 -904 15 -980 35 -213 131 -397 292 -554 58 -57 833 -679 846 -679 1 0 1 187 -1 415 l-2 414 -180 137 c-202 153 -259 210 -292 292 -21 54 -23 72 -26 355 -2 163 0 297 3 297 4 0 106 -68 228 -151 122 -83 313 -212 425 -286 l202 -136 0 -712 0 -713 -317 -237 c-292 -219 -318 -237 -337 -225 -12 8 -237 144 -501 303 -264 159 -516 314 -560 345 -102 71 -277 245 -342 342 -96 142 -157 282 -201 460 l-26 105 -4 1700 c-2 1241 0 1716 8 1760 34 180 184 342 361 389 46 13 373 15 2325 15 2241 1 2273 1 2335 -19z'/%3e%3cpath d='M4659 7075 c-250 -251 -455 -459 -457 -463 -3 -10 902 -912 915 -912 5 0 216 204 469 454 l459 454 -460 461 c-253 254 -462 461 -466 461 -3 0 -210 -205 -460 -455z'/%3e%3c/g%3e%3c/svg%3e ");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  justify-content: center;
  margin-left: 0;
}

.header-menu {
  display: flex;
  height: 100%;
  margin: 0;
  align-items: center;
  padding: 0;
  list-style: none;
  gap: clamp(10px, 3vw, 30px);
}

.header-item {
  display: flex;
  align-items: center;
  position: relative;
}

.header-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(14px, 2vw, 25px);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px clamp(5px, 1.5vw, 15px);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.header-link:hover {
  color: var(--primary-500);
}

.header-item::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--primary-500);
  transition: width 0.3s ease;
}

.header-item:hover::after {
  width: calc(100% - 30px);
}

.header-actions {
  position: absolute;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-id-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 10px;
  cursor: pointer; /* Добавляем указатель при наведении */
}

.header-id {
  font-size: 14px;
  color: #fff;
  font-family: 'Jura', sans-serif;
  font-weight: 500;
}

.header-balance {
  font-size: 14px;
  color: var(--primary-500);
  font-family: 'Jura', sans-serif;
  font-weight: 700;
}

.header-image {
  width: 48px;
  height: 48px;
  border-radius: 40px;
  background-color: #444;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.header-image:hover {
  transform: scale(1.05);
}

.header-id-balance:hover .header-id,
.header-id-balance:hover .header-balance {
  opacity: 0.8;
}

.header-link.active {
    color: var(--primary-500);
}

.header-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background-color: var(--primary-500);
}

.login-button {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(14px, 2vw, 25px);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.login-button:hover {
  color: var(--primary-500);
}

.login-svg {
  display: flex;
  align-items: right;
  justify-content: right;
  width: 21px;
  height: 21px;
  margin-left: 0;
}

.login-svg svg {
  width: 100%;
  height: 100%;
}

/* Software Showcase */
.software-showcase {
  perspective: 2000px;
  position: relative;
  width: 90%;
  max-width: 1400px;
  height: 70vh;
  min-height: 600px;
  margin: calc(var(--header-height) + 30px) auto;
  overflow: hidden;
  border-radius: 20px;
  background: var(--dark-bg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.showcase-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: 
    opacity var(--animation-duration) var(--easing-smooth),
    transform var(--animation-duration) var(--easing-smooth);
  will-change: transform, opacity;
}

.showcase-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 10;
}

.showcase-slide.next {
  transform: translateX(100%) scale(0.95);
  opacity: 0;
}

.showcase-slide.prev {
  transform: translateX(-100%) scale(0.95);
  opacity: 0;
}

.slide-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.text-panel, .image-panel {
  flex: 1;
  min-width: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-panel {
  background: rgba(25, 25, 35, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.image-panel {
  position: relative;
  overflow: hidden;
}

.image-mask {
  perspective: 1500px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.image-mask img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.95) rotateY(5deg);
  transition: 
    transform 1s var(--easing-smooth),
    box-shadow 0.5s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.showcase-slide.active .image-mask img {
  transform: scale(1) rotateY(0);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
}

.text-content {
  max-width: 500px;
  margin: 0 auto;
}

.text-panel h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: white;
  line-height: 1.2;
}

.description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border-radius: 12px;
  transform: translateY(10px);
  opacity: 0;
  transform: translateY(10px);
  opacity: 0;
  transition: 
    transform 0.5s var(--easing-smooth),
    opacity 0.5s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.showcase-slide.active .feature-card {
  transform: translateY(0);
  opacity: 1;
}

.showcase-slide.active .feature-card:nth-child(1) {
  transition-delay: 0.1s;
}
.showcase-slide.active .feature-card:nth-child(2) {
  transition-delay: 0.2s;
}
.showcase-slide.active .feature-card:nth-child(3) {
  transition-delay: 0.3s;
}

.glass-card {
  background: rgba(100, 60, 244, 0.12);
  border: 1px solid rgba(100, 60, 244, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
  color: white;
}

.feature-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.feature-card:hover {
  transform: translateY(-3px);
  background: rgba(100, 60, 244, 0.2);
  box-shadow: 0 8px 20px rgba(100, 60, 244, 0.15);
}

/* Showcase Controls */
.showcase-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 20;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.3s;
}

.software-showcase:hover .showcase-controls {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.control-prev, .control-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(100, 60, 244, 0.3);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: 
    transform 0.3s var(--easing-bounce),
    background 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(100, 60, 244, 0.3);
}

.control-prev:hover {
  transform: translateX(-5px) scale(1.1);
}

.control-next:hover {
  transform: translateX(5px) scale(1.1);
}

.pagination {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: 
    transform 0.3s var(--easing-bounce),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.dot.active {
  background: var(--primary-500);
  transform: scale(1.4);
  box-shadow: 0 0 15px var(--primary-500);
}

/* Footer Styles */
.site-footer {
  margin-top: auto;
  width: 100%;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  align-items: center;
}

.moreprogs {
  font-family: 'Jura', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  color: white;
  padding: 12px 24px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 15px rgba(100, 60, 244, 0.7);
  border: none;
  border-radius: 12px;
  background: var(--primary-500);
  transition: all 0.3s ease;
  white-space: nowrap;
  width: fit-content;
}

.moreprogs:hover {
  box-shadow: 0 0 25px rgba(100, 60, 244, 0.9);
}

.MultiRSTeam {
  color: var(--text-secondary);
  font-size: clamp(10px, 1.5vw, 12px);
  font-weight: 600;
  white-space: nowrap;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-content h1 {
  transform: translateY(20px);
  opacity: 0;
  transition: 
    transform 0.6s var(--easing-smooth),
    opacity 0.6s ease;
}

.text-content .description {
  transform: translateY(20px);
  opacity: 0;
  transition: 
    transform 0.6s var(--easing-smooth) 0.1s,
    opacity 0.6s ease 0.1s;
}

.showcase-slide.active .text-content h1,
.showcase-slide.active .text-content .description {
  transform: translateY(0);
  opacity: 1;
}

.text-content .features {
  animation: fadeInUp 0.6s ease 0.2s both;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 15px;
    margin-left: -15px;
}

.hamburger {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--padding-mobile-menu);
    left: 0;
    width: 50%;
    height: calc(100vh - var(--padding-mobile-menu));
    background: var(--bg-700);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    overflow-y: auto;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-section {
    margin-bottom: 20px;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-nav-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-section .menu {
    color: white;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
}

.mobile-nav-section .vector {
    width: 100%;
    height: 0;
    border: 1px solid rgb(173, 173, 173);
    margin: 15px 0;
}

.mobile-menu button {
    width: 100%;
    padding: 16px 20px;
    background: rgba(100, 60, 244, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Jura', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.mobile-menu button::before {
    content: '';
    width: 4px;
    height: 0;
    background: var(--primary-500);
    border-radius: 2px;
    margin-right: 12px;
    transition: height 0.3s ease;
}

.mobile-menu button:hover {
    background: rgba(100, 60, 244, 0.2);
    transform: translateX(5px);
}

.mobile-menu button:hover::before {
    height: 20px;
}

.mobile-menu button.active {
    background: rgba(100, 60, 244, 0.3);
    color: white;
}

.mobile-menu button.active::before {
    height: 20px;
}

.menu-overlay {
    position: fixed;
    top: var(--padding-mobile-menu);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--padding-mobile-menu));
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-menu {
        display: none;
    }
    
    .logotype {
        margin-left: 50px;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
  .slide-content {
    flex-direction: column;
  }
  
  .text-panel, .image-panel {
    flex: none;
    height: 50%;
    padding: 30px;
  }
  
  .image-mask {
    /* position: relative; */
    padding: 20px;
  }
  
  .image-mask img {
    max-height: 80%;
    transform: scale(0.95) rotateX(5deg);
  }

  .showcase-slide.active .image-mask img {
    transform: scale(1) rotateX(0);
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .text-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .text-content {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .top-header {
    height: 50px;
  }

  .header-menu {
    gap: 10px;
  }

  .header-nav {
    margin-right: 10%;
  }
}

/* @media (max-width: 992px) {
  .software-showcase {
    height: auto;
    min-height: 800px;
  }
  
  .features {
    grid-template-columns: 1fr 1fr;
  }
  
  .feature-card {
    transform: translateY(0) translateX(20px);
  }
  
  .showcase-slide.active .feature-card {
    transform: translateX(0);
  }
} */

@media (max-width: 768px) {
  .top-header {
    height: 50px;
    padding: 0 15px;
  }
  
  .logotype {
    display: none;
  }

  .header-nav {
    justify-content: space-between;
  }
  
  .header-menu {
    display: none;
  }

  .software-showcase {
    height: 80vh;
    min-height: 700px;
    margin: calc(var(--header-height) + 20px) auto;
    width: 95%;
  }
  
  .text-panel, .image-panel {
    padding: 20px;
  }
  
  .text-panel h1 {
    font-size: 32px;
    margin-bottom: 15px;
  }
  
  .description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 15px;
  }
  
  .showcase-controls {
    bottom: 20px;
  }
  
  .control-prev, .control-next {
    width: 45px;
    height: 45px;
  }

  .mobile-menu-toggle {
      display: flex;
      align-items: center;
  }
  
  .header-menu {
      display: none;
  }
  
  .header-nav {
      justify-content: flex-end;
  }

}

@media (max-width: 576px) {
  .software-showcase {
    min-height: 650px;
    border-radius: 12px;
  }
  
  .text-panel, .image-panel {
    padding: 20px 15px;
  }
  
  .text-panel h1 {
    font-size: 28px;
  }
  
  .description {
    font-size: 14px;
  }
  
  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .feature-title {
    font-size: 14px;
  }
  
  .feature-desc {
    font-size: 12px;
  }
  
  .showcase-controls {
    gap: 15px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .top-header {
    height: 50px;
  }
  
  .header-actions {
    position: absolute;
  }

  .software-showcase {
    min-height: 600px;
  }
  
  .text-panel h1 {
    font-size: 24px;
  }
  
  .control-prev, .control-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

}

@media (max-width: 320px) {
  .top-header {
    height: 50px;
  }
  
  .text-panel h1 {
    font-size: 28px;
  }
}

@media (hover: none) {
  .showcase-controls {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  
  .feature-card:hover {
    transform: none !important;
  }
  
  .control-prev:hover, 
  .control-next:hover,
  .dot:hover {
    transform: none !important;
  }
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.showcase-slide {
  contain: layout paint style;
}

.image-mask img {
  will-change: transform;
}