* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
}

main img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .name {
    font-size: 64px;
    margin: 20px 16px 12px;
  }

  .description,
  .more {
    font-size: 18px;
    margin: 16px 16px 0;
  }

  .about-layout {
    padding: 20px 16px 32px;
  }

  .contact-box {
    flex-direction: column;
    padding: 18px;
  }

  .contact {
    width: 100%;
    max-width: 100%;
  }

  .location {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 14px 16px;
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  nav {
    width: 100%;
  }

  .menuItems {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .menuItems a {
    font-size: 16px;
  }

  .name {
    font-size: 44px;
    text-align: center;
    margin: 20px auto 12px;
    left: 0;
    max-width: calc(100% - 20px);
  }

  .description,
  .more {
    font-size: 16px;
    line-height: 1.6;
  }

  .slider {
    width: min(100%, calc(100% - 20px));
  }

  .slider > div {
    flex-wrap: wrap;
  }

  .slider > div > * {
    flex: 1 1 calc(50% - 7px);
    max-width: none;
  }

  .slider img,
  .bosch-trigger img {
    height: 110px;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .newton {
    width: min(100%, 280px);
  }

  .description {
    font-size: 16px;
    text-align: center;
  }

  .description h1 {
    font-size: 32px;
  }

  .description h2 {
    font-size: 22px;
  }

  .contact {
    padding: 20px 16px;
  }

  .contact h1 {
    font-size: 24px;
  }

  .location iframe {
    height: 280px;
  }

  .email-button,
  .whatsapp-btn {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .slider > div > * {
    flex: 1 1 100%;
  }

  .name {
    font-size: 36px;
  }

  .description,
  .more {
    font-size: 15px;
  }

  .products-popup {
    width: min(92vw, 280px);
  }
}
