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

html,body {
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}

main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 30px;
  background: #000;
  padding-bottom: 0;
}
.header {
  position: sticky;
  top: 0;
  height: 140px;
  display: flex;
  justify-content: center;
  background: #000;
  z-index: 10;
}

svg {
  height: 100%;
  position: relative;
  padding: 26px 0;
}

.card {
  position: relative;
  min-width: 285px;
  width: 25%;
  height: calc(100vh - 174px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.card-anchor {
  position: absolute;
  top: -140px;
  left: 0;
}



.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}

.card .card__bg {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: all 0.6s ease;
}

.card:hover .card__bg {
  transform: scale(1.2);
}

.card .card__logo {
  position: absolute;
  height: 80px;
  z-index: 2;
}

.card-1 .card__logo {
  height: 100px;
}

.footer {
  display: flex;
  position: sticky;
  bottom: 0;
  padding: 0.5rem 2rem;
  background: #000;
  width: 100%;
  z-index: 4;
}

.footer * {
  color: #fff;
  text-decoration: none;  
  width: 33.3333%;
}

.footer__copy {
  text-align: center;
}

.btn-scroll {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 160px;
  height: 60px;
  aspect-ratio: 1;
  background: transparent;
  border: none;
  outline: none;
  z-index: 4;
}

.arrow {
  position: relative;
  height: 80%;
  width: 4px;
  background: #fff;  
}

.arrow::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  border-bottom: 0px solid transparent;
  border-top: 30px solid #fff;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.arrow--up {
  transform: rotate(180deg);
  animation: jump-down 0.5s ease-in-out infinite alternate;
}

.btn-scroll--down {
  top: unset;
  bottom: 60px;
  animation: jump 0.5s ease-in-out infinite alternate;
}



@media (max-width: 1200px) {
  .btn-scroll {
    display: flex;
  }
  .card {
    width: 50%;
  }
}

@media (max-width: 570px) {
  .card {
    width: 100%;
  }
.footer {
  justify-content: center;
  gap: 25%;
  flex-wrap: wrap;
}
.footer * {
  width: max-content;
}
}

.btn-inv {
  display: none;
}

@keyframes jump {
  to {
    transform: translateY(-20px);
  }
}
@keyframes jump-down {
  to {
    transform: rotate(180deg) translateY(-20px);
  }
}