:root {
  --primary: #6c63ff;
  --primary-dark: #554fd8;
  --secondary: #ff6584;
  --dark-bg: #0f0f1e;
  --dark-card: #1a1a2e;
  --dark-card-hover: #212135;
  --dark-border: #2d2d4d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0d0;
  --text-muted: #8a8aa3;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 375px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Навигация */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(15, 15, 30, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid var(--dark-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.logo i {
  color: var(--primary);
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Герой секция */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(108, 99, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 101, 132, 0.1) 0%,
      transparent 50%
    );
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(108, 99, 255, 0.2);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
  border: 1px solid rgba(108, 99, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  background: linear-gradient(to right, #ffffff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Карточки сервисов */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--dark-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  border: 1px solid var(--dark-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px var(--shadow-lg);
}

.service-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.service-rank {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.service-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  padding-right: 50px;
}

.service-desc {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 0;
}

.service-features {
  list-style: none;
  margin-bottom: 25px;
  flex-grow: 1;
}

.service-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
}

.service-features li i {
  color: var(--success);
  margin-right: 10px;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.service-contact {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-contact i {
  color: var(--primary);
  margin-right: 10px;
  width: 20px;
  flex-shrink: 0;
}

.service-btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
}

.service-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* Таблица сравнения */
.comparison-table-container {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-border);
  background-color: var(--dark-card);
}

.comparison-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.comparison-table th {
  background-color: rgba(108, 99, 255, 0.1);
  padding: 20px 15px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--dark-border);
}

.comparison-table td {
  padding: 20px 15px;
  border-bottom: 1px solid var(--dark-border);
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.rating-good {
  color: var(--success);
  font-weight: 600;
}

.rating-avg {
  color: var(--warning);
  font-weight: 600;
}

.rating-poor {
  color: var(--danger);
  font-weight: 600;
}

/* Советы */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.tip-card {
  background-color: var(--dark-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--dark-border);
  transition: var(--transition);
}

.tip-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.tip-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(108, 99, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--primary);
  font-size: 1.5rem;
}

.tip-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.tip-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Заключение */
.conclusion {
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.1) 0%,
    rgba(26, 26, 46, 0.5) 100%
  );
  border-radius: var(--radius-lg);
  padding: 50px;
  border: 1px solid var(--dark-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.conclusion:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(108, 99, 255, 0.15),
    transparent 70%
  );
  z-index: -1;
}

.conclusion-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.conclusion-text {
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 16px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

/* Футер */
.footer {
  background-color: #0a0a15;
  padding: 60px 0 30px;
  margin-top: 100px;
  border-top: 1px solid var(--dark-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo i {
  color: var(--primary);
  margin-right: 10px;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.fade-in.delay-1 {
  animation-delay: 0.2s;
}
.fade-in.delay-2 {
  animation-delay: 0.4s;
}
.fade-in.delay-3 {
  animation-delay: 0.6s;
}
.fade-in.delay-4 {
  animation-delay: 0.8s;
}

/* Скроллбар */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--dark-border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
