body {
  padding-top: 60px;
  background-color: #e9c46a;
  color: #283845;
  font-size: 18px;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main {
  flex: 1;
}

.header {
  padding: 20px;
  background-color: #e9c46a;
  text-align: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  background-image: url('https://www.space-of-gadgets.com.ua/wp-content/uploads/2023/04/logo_clear-300x300.png.webp');
  background-repeat: no-repeat;
  background-size: contain;
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin-top: -30px;
}

.header-image {
  position: relative;
  height: 262px;
  margin: 0px auto;
  background-image: url('https://www.space-of-gadgets.com.ua/wp-content/uploads/2023/01/hero-image-1.svg');
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.header-contacts {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  flex-direction: column;
  align-items: baseline;
}

.header-address,
.header-phone {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 20px;
  text-align: left;
}

.header-address i {
  padding: 0 7px;
}
.header-phone i {
  padding: 0 5px;
}

.header-address a,
.header-phone a {
  display: block;
  color: #283845;
  text-decoration: none;
  margin-right: 10px; 
  transition: color 0.3s;
}

.cta-block {
  flex: 1;
  padding: 50px 0;
  background-color: #e9c46a;
  text-align: center;
}
.cta-block h2 {
  color: #283845;
}
.cta-block p {
  color: #283845;
}

.btn-primary {
  min-width: 163px;
  max-width: 100%;
  height: 58px;
  background: #202c39;
  border-color: #202c39;

  border-radius: 126px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 112.7%;
  color: #f5f5f5;
}
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover {
  background-color: #264653 !important;
  border-color: #264653;
}

.footer {
  padding: 20px;
  background-color: #e9c46a;
  text-align: center;
}

.footer-icons {
  margin-top: 10px;
}
.footer-icons a {
  width: 40px;
  height: 40px;
  transition: 0.3s;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 100%;
  display: inline-block;
  margin-right: 10px;
}
.footer-icons a:hover {
  opacity: 0.9;
}
.footer-icons a:last-child {
  margin-right: 0;
}

@media screen and (max-width: 1024px) {
  body {
      padding: 0;
  }
  .header-logo {
    margin: -30px auto 0;
    height: 125px;
    width: 125px; 
  }
  .header-image {
    height: 200px;
  }
  .header-address,
  .header-phone {
    font-size: 16px;
    /* justify-content: center; */
  }
  .cta-block {
      padding: 10px 0;
  }
  .footer {
      padding: 10px;
  }
}
  

@media screen and (max-width: 768px) {
  .header-contacts {
    align-items: center;
  }
  .header-address,
  .header-phone {
    font-size: 20px;
  }
}

@media screen and (max-width: 576px) {
  .cta-block {
    padding: 10px 0;
  }
  .footer {
    padding: 10px;
  }
  .copyright {
    display: none;
  }
  
}
