*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden; 
} 

header {
      display: flex;           
      align-items: center;        
      justify-content: space-between; 
      background-color: #3f3f3f;
      padding: 1rem 1rem;      
      border-bottom: 1px solid #212121;
    }

    /* 3. Логотип – просто текст */
    .logo {
      font-size: 1.8rem;
      font-weight: bold;
      color: #333;
      text-decoration: none;       
    }

    nav {
      display: flex;         
      gap: 1.5rem;               
    }

    nav a {
      text-decoration: none;
      color: #ffffff;
      font-size: 1.1rem;
      transition: color 0.2s;
    }

    nav a:hover {
      color: #0056b3;
      text-decoration: underline;
    }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;      
  justify-content: center;  
  text-align: center;       
  background: linear-gradient(135deg, #000000 0%, #4a4a4a 100%);

  color: #1f1f1f;           
  padding: 2rem;         
}

.hero-content {
  max-width: 800px;      
}

.hero h1 {
  font-size: 3.5rem;        
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;         
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: #484848;
  border: none;
  border-radius: 5px;    
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cards-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.cards-grid {
  display: grid;
  /* ЭТА СТРОКА ДЕЛАЕТ ВСЮ МАГИЮ АДАПТИВАЦИИ */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: #2d2d2d;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.card p {
  color: #ffffff;
  line-height: 1.6;
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 1rem;
  }
  
  .hero p {
    font-size: 0.5rem;
  }
  
  .hero-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
}