/* =============================
   СТИЛЬ ГЛАВНОЙ СТРАНИЦЫ
   ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0b0b0b; /* тёмный фон */
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth; /* плавный скролл */
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  position: relative;
  padding: 80px 20px;
  overflow: hidden;
}

/* =============================
   HERO СЕКЦИЯ (шапка сайта)
   ============================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b0b0b 40%, #1a0000 100%);
  text-align: center;
}

.hero-content {
  z-index: 2;
  max-width: 900px;
}

.hero-logo img {
  width: 180px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ff1c1c;
  text-shadow: 0 0 20px rgba(255, 28, 28, 0.6);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #f5f5f5;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: #ff1c1c;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 28, 28, 0.4);
}

.hero-btn i {
  font-size: 1rem;
}

.hero-btn:hover {
  background: #b40000;
  box-shadow: 0 0 20px rgba(255, 28, 28, 0.6);
  transform: translateY(-3px);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Декоративные формы */
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  background: #ff1c1c;
  filter: blur(40px);
}

.shape-1 { top: 10%; left: 20%; width: 200px; height: 200px; }
.shape-2 { bottom: 15%; right: 25%; width: 300px; height: 300px; }
.shape-3 { top: 50%; right: 10%; width: 150px; height: 150px; }
.shape-4 { bottom: 5%; left: 5%; width: 250px; height: 250px; }

/* =============================
   МОДАЛЬНЫЕ ОКНА
   ============================= */
.custom-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.custom-modal-content {
  background: #1a0000;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 28, 28, 0.4);
  position: relative;
}

.custom-modal-header h3 {
  margin-bottom: 15px;
  color: #ff1c1c;
}

.custom-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s;
}

.custom-modal-close:hover {
  color: #ff1c1c;
}

.custom-download-link {
  display: block;
  padding: 12px 15px;
  margin: 10px 0;
  background: #ff1c1c;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.custom-download-link i {
  margin-right: 8px;
}

.custom-download-link:hover {
  background: #b40000;
  box-shadow: 0 0 15px rgba(255,28,28,0.5);
}

/* =============================
   СЕКЦИЯ ПРЕИМУЩЕСТВ
   ============================= */
.features-section {
  background: linear-gradient(135deg, #0b0b0b 30%, #1a0000 100%);
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 60px;
  color: #ff1c1c;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 25px rgba(255,28,28,0.4);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255,28,28,0.15);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,28,28,0.15) 0%, transparent 70%);
  transform: rotate(45deg);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 35px rgba(255,28,28,0.3);
}

.feature-icon i {
  font-size: 3rem;
  color: #ff1c1c;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 700;
}

.feature-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
}

/* =============================
   СЕКЦИЯ СТАТИСТИКИ
   ============================= */
.stats-section {
  background: linear-gradient(135deg, #0b0b0b 30%, #1a0000 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 50px 30px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(255,28,28,0.15);
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px rgba(255,28,28,0.3);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: #ff1c1c;
  text-shadow: 0 0 15px rgba(255,28,28,0.5);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: #ddd;
  font-weight: 500;
}

.stat-circle {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,28,28,0.1);
  z-index: -1;
  filter: blur(20px);
}

@media (max-width: 768px) {
  .stat-value {
    font-size: 2.5rem;
  }
}

/* =============================
   СЕКЦИЯ "КАК ПОДКЛЮЧИТЬСЯ"
   ============================= */
.connect-section {
  background: linear-gradient(135deg, #1a0000 20%, #0b0b0b 100%);
  padding: 80px 20px;
}

.connect-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.connect-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg,#ff1c1c,#b40000);
  transform: translateX(-50%);
  border-radius: 4px;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 20px;
  width: 45%;
  position: relative;
  box-shadow: 0 0 20px rgba(255,28,28,0.15);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255,28,28,0.3);
}

.step:nth-child(odd) { align-self: flex-start; }
.step:nth-child(even) { align-self: flex-end; }

.step-number {
  background: #ff1c1c;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  left: -20px;
  box-shadow: 0 0 15px rgba(255,28,28,0.4);
}

.step p {
  color: #ddd;
  margin-top: 15px;
  font-size: 1rem;
  line-height: 1.5;
}

.step-line { display: none; }

/* =============================
   АДАПТИВ ПОД МОБИЛЬНЫЕ
   ============================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .connect-steps {
    flex-direction: column;
    align-items: center;
  }
}

/* Дополнительный адаптив для маленьких экранов */
@media (max-width: 480px) {
  section {
    padding: 40px 15px;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  .feature-card, .stat-item {
    padding: 25px 20px;
  }
  .custom-modal-content {
    padding: 20px;
    border-radius: 12px;
  }
  .connect-steps::before {
    left: 0;
  }
  .step {
    width: 100%;
    align-self: center !important;
    margin-left: 20px;
  }
  .step-number {
    left: -10px;
  }

  /* Адаптив для заголовков секций */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    padding: 0 10px;
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 30px;
    padding: 0 8px;
  }
}

}
