:root {
    /* Фирменный градиент */
    --primary-gradient: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 100%);

    /* Настройки стекла */
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --card-glow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);

    --text-white: #ffffff;
    --text-gray: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0f172a;
    color: var(--text-white);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* --- ФОНОВАЯ ТЕКСТУРА (ТОЧКИ) --- */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #0f172a;
    background-image:
            radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px),
            radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
            linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    background-size: 30px 30px, cover, cover, cover;
    background-position: 0 0, center, center, center;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- СТИЛЬ КАРТОЧЕК --- */
.glass-card {
    background-image:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
            radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: var(--glass-border);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), var(--card-glow);

    border-radius: 20px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px -10px rgba(139, 92, 246, 0.3);
}

/* --- СТИЛИ ДЛЯ ЦЕНТРАЛЬНОЙ КАРТОЧКИ (POPULAR) --- */
.popular-wrapper {
    position: relative;
    transform: scale(1.08); /* Увеличение на 8% */
    z-index: 2;
    border-radius: 22px;
    padding: 2px; /* Толщина градиентной обводки */
    background: var(--primary-gradient); /* Градиент для обводки */
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
}

/* Внутри популярной карточки - ТОЧНО такие же стили как у обычных .glass-card */
.popular-wrapper .glass-card {
    /* Серый полупрозрачный фон чтобы перекрыть фиолетовый градиент */
    background-color: rgba(15, 23, 42, 0.85);
    background-image:
            radial-gradient(circle at top left, rgba(255, 255, 255, 0.15) 0%, transparent 60%),
            radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    /* Убираем border от обычной карточки, так как обводка теперь снаружи через wrapper */
    border: none;

    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), var(--card-glow);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 8px;
    border: none;
}

.btn-glow {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Типографика */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-sub {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Ротатор фраз */
.quote-rotator-section {
    padding: 20px 0 40px;
    cursor: pointer;
}

.quote-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 25px 30px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quote-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.quote-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    transition: filter 0.5s ease, opacity 0.5s ease;
    opacity: 1;
    filter: blur(0);
}

.quote-text.blur-out {
    opacity: 0;
    filter: blur(10px);
}

.quote-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero */
.hero {
    padding: 100px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing */
.pricing {
    padding: 30px 0 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
}

.price-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.price-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-list {
    list-style: none;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.features-list li i {
    color: #60a5fa;
    margin-right: 8px;
    margin-top: 3px;
}

/* Audio */
.audio-section {
    padding: 30px 0 50px;
}

.audio-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.audio-card {
    padding: 20px;
}

.audio-top {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 12px;
}

.play-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-btn:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn.playing {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.play-btn.playing:hover {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.track-info {
    flex-grow: 1;
}

.track-title {
    font-weight: 700;
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
    color: white;
}

.track-genre {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.track-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
    min-width: 85px;
    justify-content: flex-end;
}

.track-time .separator {
    opacity: 0.5;
}

/* Waveform интерактивный */
.waveform-container {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    cursor: pointer;
    position: relative;
    padding: 5px 0;
}

.waveform-bar {
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    background: rgba(139, 92, 246, 0.3);
    transition: background 0.15s ease, height 0.3s ease, transform 0.2s ease;
    position: relative;
}

.waveform-bar:hover {
    background: rgba(139, 92, 246, 0.6);
}

.waveform-bar.active {
    background: var(--primary-gradient);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Reviews */
.reviews {
    padding: 50px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stars {
    color: #fbbf24;
    margin-bottom: 5px;
    font-size: 1rem;
}

.stars i {
    margin-right: 4px;
}

.review-text {
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* CTA */
.cta-section {
    padding: 40px 0 80px;
}

.cta-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    border-radius: 30px;
    padding: 2px;
    background: var(--primary-gradient);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.cta-inner {
    background-image:
            radial-gradient(circle at top, rgba(255, 255, 255, 0.1) 0%, transparent 70%),
            linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));

    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Адаптивность */
@media (max-width: 992px) {
    .pricing-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .popular-wrapper {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .pricing-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    .quote-card {
        padding: 20px;
    }
    .quote-text {
        font-size: 1rem;
    }
    .popular-wrapper {
        transform: scale(1);
    }
}