/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --accent: #06ffa5;
    --accent-pink: #ff6b9d;
    --text: #e4e4e7;
    --text-muted: #888899;
    --border: #272738;
    --success: #06ffa5;
    --shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    --shadow-lg: 0 10px 40px rgba(139, 92, 246, 0.25);
}

body {
    font-family: 'Inter', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
    min-height: 100vh;
}

[v-cloak] {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--accent);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.cart-icon:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    border: 2px solid transparent;
    background: var(--primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(6, 255, 165, 0.1) 0%, transparent 50%),
        var(--bg-dark);
    color: var(--text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sections */
.section { padding: 100px 0; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Quick Services Grid */
.quick-services {
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.quick-card {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.quick-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.quick-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.quick-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.quick-price { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* =========================================
   PRICING GRID - 6 CARDS, 3 IN A ROW
   ========================================= */
.pricing {
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    /* Ровно 3 колонки */
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem;
    align-items: stretch; /* Растягиваем карточки на одинаковую высоту */
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    display: flex;
    flex-direction: column; /* Чтобы кнопка была внизу */
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
    z-index: 2;
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(6, 255, 165, 0.2);
    transform: scale(1.03);
    z-index: 3;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Заставляет список занимать всё свободное место */
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: auto; /* Прижимает кнопку к низу карточки */
}

/* Адаптивность для сетки 3 колонки */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
    .pricing-card.popular {
        transform: scale(1);
    }
}

@media (max-width: 700px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
    }
}

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info, .contact-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-dark);
    color: var(--text);
}
.form-note { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

.legal-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.footer {
    background: var(--bg-dark);
    color: var(--text);
    padding: 3rem 0 1.5rem;
    border-top: 2px solid var(--border);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

/* ИСПРАВЛЕНИЕ ДЛЯ ССЫЛОК В ФУТЕРЕ */
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap; /* Чтобы ссылки не переносились криво */
}

.footer-links a:hover {
    color: var(--accent);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 400px; height: 100vh;
    background: var(--bg-card);
    border-left: 2px solid var(--border);
    z-index: 1500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1400;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.visible { opacity: 1; visibility: visible; }
.cart-header { padding: 1.5rem; border-bottom: 2px solid var(--border); display: flex; justify-content: space-between; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; background: var(--bg-dark); margin-bottom: 1rem; border: 1px solid var(--border); }
.cart-footer { padding: 1.5rem; border-top: 2px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-total-amount { font-size: 1.5rem; font-weight: 700; color: var(--accent); }

/* Modals */
.payment-modal, .modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
}
.payment-content, .modal-content {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
}
.qr-placeholder {
    width: 200px; height: 200px; background: var(--bg-dark);
    margin: 1.5rem auto; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: var(--text-muted);
}
.payment-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .stats { flex-direction: column; gap: 1rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-sidebar { width: 100%; right: -100%; }
    .footer-content { flex-direction: column; gap: 1rem; }
    .footer-links { justify-content: center; }
}