.models-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.models-header {
  background-color: #002c5f;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 26px 0;
  margin-bottom: 64px;
}

.models-header h1 {
  color: #fff;
  width: 100%;
  padding: 22px 6%;
  margin: 0 auto;
  font-size: 24px;
  text-align: center;
  font-weight: 700;
}

@media screen and (min-width: 420px) {
  .models-header h1 {
    font-size: 28px;
  }
}

@media screen and (min-width: 1024px) {
  .models-header h1 {
    font-size: 55px;
  }
}

.models-list-section h1 {
  font-weight: 700;
  font-size: 24px;
  width: 100%;
  text-align: center;
  margin-bottom: 32px;
}

@media screen and (min-width: 420px) {
  .models-list-section h1 {
    font-size: 26px;
  }
}

@media screen and (min-width: 640px) {
  .models-list-section h1 {
    font-size: 34px;
  }
}

@media screen and (min-width: 1024px) {
  .models-list-section h1 {
    font-size: 50px;
  }
}

.models-list-section {
  margin-bottom: 64px;
}

.models-list-items {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 32px;
  margin: 0 64px;
}

@media screen and (min-width: 640px) {
  .models-list-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .models-list-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media screen and (min-width: 1400px) {
  .models-list-items {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.models-list-section a {
  text-decoration: none;
  color: inherit;
}

.model-list-item {
  position: relative;
  cursor: pointer;
}

.model-list-item::before {
  width: 100%;
  height: 70%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transform: translate3d(0, 50%, 0) scale3d(0.96, 0.96, 0.96);
  content: "";
  background: #f6f6f6;
  opacity: 0;
  transform-origin: 50% 50%;
  transition: opacity 0.3s ease-in-out,
    transform 0.3s cubic-bezier(0.7, -0.02, 0, 1);
}

.model-list-item:hover::before {
  opacity: 1;
  transform: translate3d(0, 50%, 0) scale3d(1, 1, 1);
}

.model-list-item:hover .discover-button {
  opacity: 1;
}

.discover-button {
  margin: 0;
  position: relative;
  padding: 0;
  opacity: 0;
  color: #fff;
  background: #002c5f;
  border: 0;
  border-radius: 0;
  margin: 0 16px;
  width: calc(100% - 32px);
  padding: 16px 0;
  font-weight: 700;
  letter-spacing: 0.01rem;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  outline: 0;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out,
    background 0.3s ease-in-out, border 0.3s ease-in-out;
}

.discover-button:hover {
  filter: brightness(1.2);
}

.model-list-item img {
  margin-bottom: 16px;
  transition: 0.2s ease-in-out;
}

.model-list-item h4 {
  font-weight: 700;
  text-align: center;
  z-index: 1;
  margin-bottom: 16px;
  position: relative;
}

.model-list-item p {
  color: #666;
  text-align: center;
  z-index: 1;
  position: relative;
}

.new-tag {
  position: absolute;
  right: -32px;
  top: 0;
  background-color: red;
  padding: 4px 8px;
  color: white;
  font-size: 11px;
}

.model-list-item:hover img {
  transform: scale3d(1.1, 1.1, 1);
}
