* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
}

header h1 {
  font-size: 2.8em;
  margin-bottom: 10px;
}

header h1 span {
  color: #fff;
  font-weight: 600;
}

header p {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  margin: 0 10px;
  background: #fff;
  color: #2575fc;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

/* Общие стили секций */
.section {
  padding: 80px 0;
  background: white;
}

.section.light {
  background: #f1f5f9;
}

.section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #2c3e50;
}

/* Навыки */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  background: #34495e;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

/* Проекты */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.project-card h3 {
  margin-bottom: 10px;
  color: #1976d2;
  font-size: 1.4em;
}

.project-card p {
  color: #555;
  margin-bottom: 15px;
  font-size: 0.95em;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-links a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #2980b9;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

.project-links a:hover {
  background-color: #1a5f8c;
}

/* Контакты */
#contact {
  background: #f1f5f9;
  padding: 60px 0;
}

#contact h2 {
  margin-bottom: 15px;
}

#contact p {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.contact-links a {
  display: inline-block;
  padding: 10px 16px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  min-width: 130px;
  text-align: center;
}

.contact-links a:hover {
  background-color: #2980b9;
}

/* Подвал */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 15px 0;
  margin-top: 0;
  min-height: auto;
}

footer p {
  font-size: 0.9em;
}

/* Адаптивность */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2em;
  }

  .btn {
    display: block;
    margin: 10px auto;
    max-width: 200px;
  }

  .section {
    padding: 60px 0;
  }

  .contact-links a {
    min-width: 110px;
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 100px 20px 60px;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-card {
    padding: 18px;
  }

  .contact-links {
    gap: 10px;
  }

  .contact-links a {
    font-size: 12px;
    padding: 6px 10px;
    min-width: 100px;
  }
}
