* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /*min-height: 100vh;*/
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(80, 0, 0, 0.55), transparent 25%, transparent 75%, rgba(90, 15, 0, 0.7)),
    url("../images/bg.png") center/cover no-repeat;
  background-color: #080808;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 15px 32px;
  text-align: center;
}

.logo {
  margin-bottom: 30px;
}

.logo img {
  width: 420px;
  max-width: 80%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.card {
  height: 220px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  padding: 15px;
  border-radius: 8px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.card-front {
  background: #171717;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.card-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-back {
  background: #f4e6bf;
  color: #303030;
  transform: rotateY(180deg);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}

.card p {
  margin: 0 0 28px;
  font-size: 12px;
  line-height: 1.2;
  color: #cfcfcf;
}

.card-back p {
  color: #333;
  margin-bottom: 7px;
}

.content-type {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  color: #ff5a1f;
  position: relative;
}

.content-type::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #ff5a1f;
}

.button {
  width: 112px;
  height: 30px;
  border-radius: 18px;
  border: 1px solid #d0d0d0;
  background: transparent;
  color: #d0d0d0;
  cursor: pointer;
  font-size: 13px;
  margin-top: 6px;
  transition: 0.2s ease;
}

.button.primary {
  background: #ff4b0b;
  border-color: #ff4b0b;
  color: #151515;
}

.button:hover {
  filter: brightness(1.15);
}

.close {
  position: absolute;
  right: 2px;
  top: 2px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.help {
  max-width: 1040px;
  margin: 32px auto 0;
  padding: 34px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(30, 30, 30, 0.95), rgba(55, 22, 22, 0.95));
}

.help strong {
  display: block;
  margin-bottom: 8px;
  color: #ff4b0b;
  font-size: 20px;
}

.help span {
  color: #d9d9d9;
  font-size: 18px;
}

@media (max-width: 1000px) {
  .page {
    padding: 24px 32px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 16px;
  }

  .card {
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .page {
    padding: 32px 24px;
  }

  .grid {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .card {
    height: 210px;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }

  .help span {
    font-size: 15px;
  }
}

