.card-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  max-width: 440px;
  height: 100%;
  margin-top: 50px;
}

.card-container .card {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 200px;
  padding: 20px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: -2px 2px 0px 0px #202020, -10px 10px 40px 0px rgba(0, 0, 0, 0.3);
  transform: translate(0px, 0px) rotateX(30deg) rotateZ(-20deg);
  z-index: 2;
  transition: all 1s;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: white;
  cursor: pointer;
}

.card-container .card:hover {
  transform: translate(0px, -20px) rotateX(10deg) rotateZ(-20deg);
  box-shadow: -2px 1px 0px 0px #202020, -40px 40px 40px 0 rgba(0, 0, 0, 0.2);
}

.card-container .card h1 {
  position: relative;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px black;
  border-radius: 4px;
  width: fit-content;
  padding-inline: 4px;
  color: white;
}

.card-container .card h1.price {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0;
  color: white;
}

.card-container .card h3 {
  position: relative;
  font-size: 14px;
  text-transform: uppercase;
  text-shadow: 0 0 10px black;
  line-height: 1.1;
  letter-spacing: 0.05em;
  border-radius: 4px;
  max-width: calc(100% - 40px);
  padding-inline: 4px;
  color: white;
  display: block;
}

.card-container .card h3.name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.card-container .card .circle {
  position: absolute;
  margin: auto;
  top: 10%;
  bottom: 0;
  right: -50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: white;
  z-index: -2;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.card-container .card .circle:nth-of-type(2) {
  width: 100px;
  height: 100px;
  top: 90%;
  right: -20%;
  z-index: -1;
  background: black;
}

.card-container .card h1::before,
.card-container .card h3::before {
  content: attr(content);
  position: absolute;
  inset: 0;
  letter-spacing: 0.05em;
  z-index: -1;
  line-height: 1.1;
  transform: translatex(3px) translatey(3px);
  color: black;
  filter: blur(2px);
}

.card-container__actions a {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: transparent;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  color: #333;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  letter-spacing: 1px;
  border-top: 1px solid #2ECC71;
  border-bottom: 1px solid #2ECC71;
}

.card-container__actions a:hover {
  background: #2ECC71;
  border-radius: 6px;
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  color: #fff;
  padding-right: 24px;
  padding-left: 8px;
}

.card-container__actions a:after {
  content: '»';
  position: absolute;
  opacity: 0;  
  top: 50%;
  transform: translateY(-50%);
  right: -20px;
  transition: 0.5s;
}

.card-container__actions a:hover:after {
  opacity: 1;
  right: 10px;
}

@media only screen and (max-width: 780px) {
  .card-container {
    height: 270px;
    margin-inline: -20px 20px;
  }
  
  .card-container .card {
    width: 100%;
    max-width: 250px;
    height: 150px;
    transition: none;
  }
  
  .card-container .card h1.price {
    font-size: 14px;
  }
  
  .card-container .card h3 {
    font-size: 12px;
  }
  
  .card-container .card h3.name {
    font-size: 10px;
  }
  
  .card-container .card .circle {
    right: -70%;
  }
}

