:root {
  --main-yellow: #ffae00;
  --main-yellow-light: #ffd44d;
  --main-yellow-shadow: #ffae00a8;
  --bg-dark: #1e1e2e;
  --bg-modal: rgba(15, 15, 26, 0.95);
  --text-black: #000;
  --text-light: #fff;
}

.btn,
.buy-btn,
.buy-final {
  background: var(--main-yellow);
  color: var(--text-black);
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px var(--main-yellow-shadow);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  will-change: background-color, box-shadow;
  display: inline-block;
  text-align: center;
}

.btn:hover,
.buy-btn:hover,
.buy-final:hover,
.btn:focus,
.buy-btn:focus,
.buy-final:focus {
  background: var(--main-yellow-light);
  box-shadow: 0 0 25px var(--main-yellow-light);
  outline: none;
}

.btn:focus,
.buy-btn:focus,
.buy-final:focus {
  outline: 3px solid var(--main-yellow-light);
  outline-offset: 4px;
}

.privileges {
  padding: 70px 20px;
  text-align: center;
}

.privileges h2 {
  font-size: 34px;
  margin-bottom: 40px;
  color: var(--main-yellow);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, box-shadow, opacity;
  display: flex;
  flex-direction: column;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--main-yellow);
  text-shadow: 0 0 8px var(--main-yellow);
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 8px 25px rgba(255, 174, 0, 0.6);
  cursor: pointer;
}

.buy-btn {
  margin-top: 12px;
  padding: 12px 25px;
  cursor: pointer;
  align-self: stretch;
}

.card h3 {
  min-height: 26px;
}

.card p {
  color: #ddd;
  min-height: 44px;
}

.about,
.contacts {
  padding: 60px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.about.visible,
.contacts.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  display: none; /* Будет включаться через JS */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-modal);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: 14px;
  width: 90%;
  max-width: 600px;
  color: var(--text-light);
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalFade 0.4s ease forwards;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: var(--main-yellow);
  margin-bottom: 15px;
  text-shadow: 0 0 10px var(--main-yellow);
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  text-align: left;
}

.modal-content ul li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.modal-content ul li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  color: var(--main-yellow);
}

.buy-form {
  margin: 15px 0 10px;
  text-align: left;
}

.buy-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--main-yellow);
  font-weight: 600;
}

.buy-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 174, 0, 0.4);
  background: #121222;
  color: #fff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.buy-form input:focus {
  border-color: var(--main-yellow);
  box-shadow: 0 0 0 3px rgba(255, 174, 0, 0.25);
}

#price-line {
  margin-top: 10px;
  color: #ddd;
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  color: var(--main-yellow);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.close-btn:hover,
.close-btn:focus {
  color: var(--main-yellow-light);
  outline: none;
}

.close-btn:focus {
  outline: 3px solid var(--main-yellow-light);
  outline-offset: 4px;
}