:root {
  --primary-color: #e83e8c;
  --secondary-color: #7952b3;
  --accent-color: #6a11cb;
  --dark-bg: #0d1117;
  --darker-bg: #090c10;
  --card-bg: #161b22;
}

body {
  background-color: var(--dark-bg);
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.glow {
  box-shadow: 0 0 15px rgba(232, 62, 140, 0.5);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(232, 62, 140, 0.1);
  box-shadow: 0 5px 15px rgba(232, 62, 140, 0.3);
}

.feature-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  height: 60px;
  width: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.grid-pattern {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.progress-bar {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 3px;
}

.stats-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  top: 0;
  left: 0;
}

/* Hero section server image */
.server-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(232, 62, 140, 0.5);
}

/* Стили для модальных окон */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
}

.modal-content {
  background-color: var(--card-bg);
  margin: 50px auto;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalFade 0.3s ease;
}

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

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

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: white;
}

/* Полноэкранные модальные окна на мобильных устройствах */
@media (max-width: 768px) {
  .modal-content {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    animation: modalFadeMobile 0.3s ease;
  }
  
  @keyframes modalFadeMobile {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-header {
    padding: 15px;
    position: sticky;
    top: 0;
    background-color: var(--card-bg);
    z-index: 10;
  }
  
  .modal-body {
    max-height: calc(100vh - 70px);
    padding: 15px;
  }
  
  .close {
    font-size: 32px;
    padding: 5px 10px;
  }
}

/* Стили для адаптации на мобильных устройствах */
@media (max-width: 640px) {
  /* Логотип "Кванта телеком" в две строки */
  .logo-container {
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
  }
  
  .logo-container span.mr-2 {
    margin-right: 0;
  }
  
  /* Кнопка "Узнать больше" по центру */
  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
  
  /* Увеличиваем кнопку для лучшего опыта на мобильных */
  .hero-buttons .btn-outline {
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}
