*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0a0a0a;
  font-family: -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
}

.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.15; animation: orbFloat 12s ease-in-out infinite alternate; }
.orb1 { width: 500px; height: 500px; background: #5b3bff; top: -150px; left: -100px; animation-duration: 14s; }
.orb2 { width: 400px; height: 400px; background: #00c97a; bottom: -100px; right: -80px; animation-duration: 10s; animation-delay: -4s; }
.orb3 { width: 300px; height: 300px; background: #ff3b6b; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-duration: 16s; animation-delay: -7s; opacity: 0.08; }
@keyframes orbFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,40px) scale(1.08); }
}

.wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 700px;
  background: rgba(17,17,17,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 22px 20px 20px;
  animation: wrapIn 0.6s cubic-bezier(.22,1,.36,1) both;
}
@keyframes wrapIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav {
  font-size: 10px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); font-weight: 600;
  margin-bottom: 20px;
}

/* ===== КАРТОЧКА — ДЕСКТОП ===== */
.card {
  position: relative;
  background: rgba(28,28,28,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s;
  animation: cardIn 0.55s var(--delay,0s) cubic-bezier(.22,1,.36,1) both;
  --mx: 50%; --my: 50%;
}
.card:last-child { margin-bottom: 0; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

.shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.3s; z-index: 10;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0.07) 0%, transparent 60%);
}
.card:hover .shine { opacity: 1; }

.card-img {
  position: relative; overflow: hidden;
  min-height: 220px; background: #141414;
}
.card-img-free { background: #0f1a14; }

.preview-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; position: absolute; inset: 0;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.card:hover .preview-img { transform: scale(1.05); }

.img-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 100%);
}

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  font-size: 11px; font-weight: 700; padding: 5px 11px;
  border-radius: 30px; letter-spacing: 0.03em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: badgePop 0.4s calc(var(--delay,0s) + 0.3s) cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.gold-badge  { background: rgba(255,198,50,0.2); border: 1px solid rgba(255,198,50,0.4); color: #ffc632; }
.green-badge { background: rgba(80,210,130,0.18); border: 1px solid rgba(80,210,130,0.35); color: #50d282; }

.corner-icon {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}

.card-text {
  padding: 18px 16px 16px;
  display: flex; flex-direction: column;
  position: relative; z-index: 2;
}
.card-title { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.0; margin-bottom: 7px; letter-spacing: -1px; }
.card-subtitle { font-size: 11px; color: rgba(255,255,255,0.38); font-weight: 500; margin-bottom: 11px; }
.card-subtitle-free { font-size: 11px; color: #50d282; font-weight: 800; letter-spacing: 0.12em; margin-bottom: 11px; text-shadow: 0 0 12px rgba(80,210,130,0.4); }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.checklist li { font-size: 11.5px; color: rgba(255,255,255,0.6); display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; }
.check { color: #50d282; font-size: 11px; flex-shrink: 0; margin-top: 1px; }

.divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px; }
.price-label { font-size: 9px; color: rgba(255,255,255,0.28); font-weight: 700; letter-spacing: 0.14em; margin-bottom: 3px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price-value { font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.price-value.gold  { color: #ffc632; text-shadow: 0 0 20px rgba(255,198,50,0.35); }
.price-value.green { color: #50d282; text-shadow: 0 0 20px rgba(80,210,130,0.35); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  padding: 8px 14px; border-radius: 10px; border: none;
  cursor: pointer; white-space: nowrap; flex-shrink: 0; text-decoration: none;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
}
.btn:active { transform: scale(0.95) !important; }
.btn-paid  { background: rgba(255,255,255,0.92); color: #111; box-shadow: 0 4px 20px rgba(255,255,255,0.12); }
.btn-paid:hover  { background: #fff; transform: translateY(-1px); }
.btn-free  { background: linear-gradient(135deg, #3ed97a, #00c96b); color: #052010; box-shadow: 0 4px 20px rgba(62,217,122,0.3); }
.btn-free:hover  { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(62,217,122,0.45); }
.btn-other { background: linear-gradient(135deg, #7b6ef6, #5b3bff); color: #fff; box-shadow: 0 4px 20px rgba(91,59,255,0.3); }
.btn-other:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(91,59,255,0.45); }


/* =============================================
   МОБИЛЬНЫЙ
   Обе карточки горизонтальные, фиксированная
   высота — влезают без скролла
   ============================================= */
@media (max-width: 600px) {

  body {
    padding: 0;
    min-height: 100svh;
    align-items: stretch;
  }

  .wrap {
    border-radius: 0;
    border: none;
    padding: 12px 10px 10px;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .nav {
    font-size: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  /* Карточки занимают ровно оставшееся место пополам */
  .card {
    flex: 1;
    /* горизонтальный лейаут: фото | текст */
    grid-template-columns: 42% 58%;
    min-height: unset;
    margin-bottom: 8px;
    border-radius: 14px;
  }
  .card:last-child { margin-bottom: 0; }

  .card-img {
    min-height: unset;  /* убираем десктопный min-height */
    height: 100%;
  }

  /* Текстовый блок — компактный */
  .card-text {
    padding: 12px 12px 12px;
    justify-content: space-between;
  }

  /* Верх карточки */
  .card-top { display: flex; flex-direction: column; }

  .card-title {
    font-size: 24px;
    margin-bottom: 3px;
    letter-spacing: -0.5px;
    line-height: 1.05;
  }

  .card-subtitle {
    font-size: 9.5px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.4);
  }

  .card-subtitle-free {
    font-size: 9.5px;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    animation: glowPulse 2.2s ease-in-out infinite;
  }
  @keyframes glowPulse {
    0%,100% { text-shadow: 0 0 6px rgba(80,210,130,0.5); }
    50%      { text-shadow: 0 0 16px rgba(80,210,130,1), 0 0 32px rgba(80,210,130,0.4); }
  }

  .checklist { gap: 4px; margin-bottom: 0; }
  .checklist li { font-size: 9.5px; gap: 5px; line-height: 1.3; color: rgba(255,255,255,0.55); }
  .check { font-size: 9px; }

  .divider { margin: 10px 0 8px; }

  .price-label { font-size: 8px; margin-bottom: 2px; }

  .price-row { margin-top: 0; align-items: center; }

  .price-value { font-size: 20px; }

  .btn {
    font-size: 9.5px;
    padding: 7px 12px;
    border-radius: 9px;
    letter-spacing: 0.06em;
  }

  .badge {
    font-size: 9px;
    padding: 3px 8px;
    top: 8px; left: 8px;
  }
  .corner-icon {
    width: 24px; height: 24px;
    font-size: 11px;
    top: 8px; right: 8px;
  }
}
