.block-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.block-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.spacing {
  width: 100%;
  min-height: 50px;
  display: block;
}

.block {
  flex: 1 1 calc(33.333% - 20px);
}

.fitcheck-block {
  width: 600px;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: white;
  min-height: 280px;
}

.fitcheck-block .block-header {
  height: 40px;
  background: linear-gradient(to right, #437ca7, #263955);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.fitcheck-block .block-content {
  height: 240px;
  background: linear-gradient(to bottom, #a3d9ff, #d5ebff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.fitcheck-text {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
}

.fitcheck-buttons {
  display: flex;
  justify-content: space-between;
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fitcheck-button {
  width: 120px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: bold;
  background-color: #d5ebff;
}

.agree {
  border: 2px solid #008000;
  color: #008000;
}

.disagree {
  border: 2px solid #ff0000;
  color: #ff0000;
}

.fitcheck-image {
  width: 20%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.fitcheck-line {
  width: 100%;
  max-width: 960px;
  height: 2px;
  background-color: #a3d9ff;
  margin: 20px auto;
}
.fitcheck-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 14px;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
}

.fitcheck-block {
  position: relative;
  padding-bottom: 40px;
}

.reset-button {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  width: 45px;
}

@media (max-width: 900px) {
  .block {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .block {
    flex: 1 1 100%;
  }

  .fitcheck-block {
    width: 90%;
    min-height: 250px;
  }

  .fitcheck-text {
    font-size: 16px;
    top: 5%;
    width: 90%;
  }

  .fitcheck-buttons {
    flex-direction: row;
    justify-content: space-between;
    width: 85%;
    top: 45%;
  }

  .fitcheck-button {
    width: 40%;
    padding: 8px 16px;
    font-size: 12px;
  }

  .fitcheck-image {
    width: 30%;
    height: auto;
    position: absolute;
    bottom: 10px;
    left: 50%;
    top: 57%;
    transform: translateX(-50%);
  }
}
