/* Общие настройки */
:root {
    --primary: #d500f9;
    --secondary: #7e00b8;
    --dark-bg: #0b0710;
    --card-bg: #150f1f;
    --text-color: #ffffff;
    --glow: 0 0 20px rgba(213, 0, 249, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 7, 16, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(213, 0, 249, 0.2);
}

.logo { font-size: 24px; font-weight: 800; letter-spacing: 2px; }
.logo span { color: var(--primary); text-shadow: var(--glow); }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: #fff; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); text-shadow: var(--glow); }

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a003b 0%, var(--dark-bg) 70%);
    position: relative; /* Важно для позиционирования виджета */
}

.hero-content h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.1; }
.glow-text { color: var(--primary); text-shadow: 0 0 30px var(--primary); }
.hero-content p { font-size: 1.2rem; color: #ccc; margin-bottom: 40px; }

/* КНОПКИ */
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

.btn-main, .btn-buy {
    padding: 15px 40px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: var(--glow);
    display: inline-block;
}

.btn-main:hover, .btn-buy:hover { transform: scale(1.05); box-shadow: 0 0 40px var(--primary); }

/* --- НОВЫЙ ВИДЖЕТ СПРАВА СВЕРХУ --- */
.side-widget {
    position: absolute;
    top: 120px; /* Отступ сверху (под меню) */
    right: 50px; /* Отступ справа */
    width: 280px;
    background: rgba(255, 255, 255, 0.03); /* Очень прозрачный фон */
    backdrop-filter: blur(15px); /* Эффект стекла */
    border: 1px solid rgba(213, 0, 249, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    z-index: 90;
    animation: float 6s ease-in-out infinite;
}

/* Красивая анимация плавания виджета */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.widget-header h3 { font-size: 1.1rem; color: #fff; }

.badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 0 10px var(--primary);
}

.widget-desc {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-widget {
    display: block;
    text-align: center;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-widget:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary);
}
/* ---------------------------------- */


/* Секция видео */
.video-section { padding: 100px 20px; text-align: center; }
.video-section h2, .product-section h2 { font-size: 2.5rem; margin-bottom: 40px; color: white; }

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--primary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--glow);
    aspect-ratio: 16 / 9;
}
.video-container iframe { width: 100%; height: 100%; }

/* Карточка товара */
.product-section { padding: 50px 20px 100px; text-align: center; }

.card {
    background: var(--card-bg);
    max-width: 700px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(213, 0, 249, 0.3);
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
}

.card:hover { transform: translateY(-10px); box-shadow: 0 0 30px rgba(213, 0, 249, 0.4); }
.card-image { position: relative; height: 400px; background-color: #333; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-image img { transform: scale(1.05); }

.price-tag {
    position: absolute; top: 10px; right: 10px;
    background: rgba(213, 0, 249, 0.9);
    padding: 8px 10px; border-radius: 8px; box-shadow: 0 0 10px black;
    display: flex; flex-direction: column; gap: 4px;
    font-size: 0.8rem; font-weight: 600; min-width: 100px;
}

.price-row { display: flex; justify-content: space-between; align-items: center; color: #fff; }
.price-row span { font-weight: 800; margin-left: 8px; color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.5); }

.card-info { padding: 20px; text-align: left; }
.card-info h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary); }
.features { list-style: none; margin: 20px 0; }
.features li { margin-bottom: 8px; color: #ddd; }
.btn-buy { width: 100%; display: block; margin-top: 10px; }

/* Футер */
footer { padding: 30px; text-align: center; border-top: 1px solid #333; color: #666; font-size: 0.9rem; }

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; }
    
    /* На телефоне убираем виджет из угла и ставим под текстом */
    .side-widget {
        position: relative;
        top: 0;
        right: 0;
        margin: 40px auto 0; /* Центрируем */
        width: 100%;
        max-width: 300px;
    }
}