/* ===== Мобильная адаптация ===== */

/* Общие правила */
img {
  max-width: 100%;
  height: auto;
}

.container, .content, .card, .service-card, form {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

button, a.button {
  min-height: 44px;
  padding: 12px 16px;
  font-size: 1rem;
}

/* Планшеты */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 0 10px;
  }
  .navbar {
    flex-direction: column;
    text-align: center;
  }
  .navbar a {
    display: block;
    padding: 10px;
  }
  .grid, .cards, .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* Смартфоны */
@media (max-width: 480px) {
  body {
    font-size: 15px;
    padding: 0 5px;
  }
  .grid, .cards, .services-grid {
    grid-template-columns: 1fr;
  }
  h1, h2, h3 {
    font-size: 1.3rem;
  }
  form input, form button {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Маленькие экраны */
@media (max-width: 360px) {
  body {
    font-size: 14px;
  }
  h1, h2, h3 {
    font-size: 1.1rem;
  }
  button, a.button {
    font-size: 0.9rem;
  }
}

/* ===== Бургер-меню ===== */
.burger {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}
.burger div {
  background: #fff;
  height: 3px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .burger {
    display: flex;
  }
  .navbar {
    display: none;
    flex-direction: column;
    background: #0f1c2e;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
  }
  .navbar.open {
    display: flex;
  }
}
