/* =========================
   RESET + BASE
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --acid-green: #7cff00;
    --toxic-pink: #ff00ff;
    --neon-cyan: #00e5ff;
    --glitch-yellow: #fff700;
    --dark-bg: #0b0f1a;
    --card-bg: rgba(20, 25, 45, 0.92);
}

body {
    background:
        radial-gradient(circle at 10% 20%, #7cff00 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, #ff00ff 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, #00e5ff 0%, transparent 50%),
        var(--dark-bg);
    color: #f5f7ff;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================
   HEADER
   ========================= */
.header {
    text-align: center;
    padding: 48px 20px;
}

.header h1 {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 1px;
    color: white;
    text-shadow:
        0 0 15px rgba(124,255,0,0.6),
        0 0 30px rgba(0,229,255,0.3);
}

/* =========================
   MENU
   ========================= */
.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: rgba(15, 20, 40, 0.9);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--acid-green);
    text-shadow: 0 0 12px rgba(124,255,0,0.7);
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 28px;
}

.menu-list a {
    text-decoration: none;
    color: #f5f7ff;
    font-weight: 600;
    position: relative;
    transition: color .2s ease;
}

.menu-list a:hover {
    color: var(--neon-cyan);
}

.menu-btn {
    padding: 12px 22px;
    background: linear-gradient(45deg, var(--acid-green), var(--neon-cyan));
    color: black;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--acid-green);
}

/* =========================
   PRODUCTS
   ========================= */
.products {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px 20px;
}


.card {
  position: relative; /* обязательно, чтобы позиционировать бейдж */
  /* твои остальные стили */
}

/* Бейдж ТОП */
.card.top::before {
  content: "ТОП";
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(45deg, #ff00ff, #00e5ff);
  color: black;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 14px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.7);
  pointer-events: none; /* чтобы бейдж не мешал клику */
  z-index: 10;
  user-select: none;
}


.card {
    width: 260px;
    background: var(--card-bg);
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 18px 50px rgba(0,0,0,0.7);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: scale(1.04) rotate(-0.4deg);
    box-shadow:
        0 0 0 1px rgba(124,255,0,0.4),
        0 0 35px rgba(124,255,0,0.5);
}

.card img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--glitch-yellow);
    margin-bottom: 14px;
}

/* =========================
   BUTTON
   ========================= */
.btn {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(45deg, var(--toxic-pink), var(--neon-cyan));
    color: black;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px var(--toxic-pink);
}

/* =========================
   TEXT-TOVAR
   ========================= */
.text-tovar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 20px;
    padding: 32px 36px;
    background: rgba(15, 20, 40, 0.85);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
}

.text-tovar h3 a {
    text-decoration: none;
    font-weight: 700;
    color: var(--neon-cyan);
}

.text-tovar h3 a:hover {
    color: var(--acid-green);
}

/* =========================
   PROMO
   ========================= */
.promo {
    margin: 60px 20px;
    padding: 40px;
    background: rgba(15, 20, 40, 0.85);
    border-radius: 28px;
    text-align: center;
}

.promo h2 {
    font-size: 30px;
    margin-bottom: 14px;
    color: var(--acid-green);
}

.promo p {
    font-size: 18px;
    margin-bottom: 24px;
    color: #cfd6ff;
}

.promo-btn {
    padding: 16px 34px;
    background: linear-gradient(45deg, var(--glitch-yellow), var(--acid-green));
    color: black;
    font-size: 18px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.promo-btn:hover {
    box-shadow: 0 0 35px var(--glitch-yellow);
}

/* =========================
   FOOTER
   ========================= */
.footer {
    text-align: center;
    padding: 24px;
    opacity: 0.7;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

    .menu {
        flex-direction: column;
        gap: 14px;
    }

    .menu-list {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .card {
        width: 100%;
        padding: 14px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .text-tovar {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .promo {
        padding: 28px 20px;
    }
}
