/* Общие стили */
body {
  margin: 0;
  font-family: "Noto Sans", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  padding: 10px 20px;
  background: #5581ba;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn:hover {
  background: #33679b;
}

/* Шапка */
.header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 20px;
  background: #f8fafc;
  border-bottom: 1px solid #ddd;
}

.nav {
  display: flex;
  gap: 30px;
  justify-content: center;
}

/* Бургер по умолчанию скрыт */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 20px;
  align-items: center;
  background: #e6eef2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-img img {
  max-width: 100%;
  border-radius: 12px;
}

/* Карточки */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 📱 Мобильная версия */
@media (max-width: 768px) {
  .header {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 15px 20px;
    position: relative;
  }

  .nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
    padding: 0 20px;
    
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .nav.active {
    max-height: 300px;
    padding: 15px 20px;
  }

  .burger {
    display: flex;
  }

  /* Анимация "крестика" */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero {
    grid-template-columns: 1fr; /* текст и картинка в одну колонку */
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .cards {
    grid-template-columns: 1fr; /* карточки в одну колонку */
  }
}