/* ===== RESET & ROOT ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #030303;
    --bg-secondary: #0a0a0a;
    --bg-card: #0f0f12;
    --bg-card-hover: #15151a;
    --bg-input: #121215;
    --border: #1e1e24;
    --border-hover: #32323e;
    --text: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --white: #ffffff;
    --accent: #d97706; /* Amber accent */
    --accent-rgb: 217, 119, 6;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.text-green { color: #10b981; }
.text-gold { color: #f59e0b; }
.text-purple { color: #8b5cf6; }
.font-mono { font-family: var(--mono); }

/* ===== NOISE & BG EFFECTS ===== */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.7;
}

/* Background glows */
body::after {
    content: '';
    position: absolute; top: -10%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.35rem;
    letter-spacing: -0.03em;
    color: var(--white);
}
.nav-logo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6);
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary); font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-btn {
    padding: 10px 20px; border-radius: var(--radius-sm);
    background: var(--white); color: var(--bg);
    font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}
.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: var(--radius-full);
    border: 1px solid var(--border);
    font-size: 0.85rem; color: var(--text-secondary);
    font-weight: 600; margin-bottom: 32px;
    background: var(--bg-card);
}
.hero-tag-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800; letter-spacing: -0.04em;
    line-height: 1.1; margin-bottom: 24px;
    color: var(--white);
}
.hero h1 span {
    color: var(--accent);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 44px;
    line-height: 1.7;
}
.hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 16px;
}
.btn {
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.2);
}
.btn-primary:hover {
    background: #e66b00;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.35);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ===== PRODUCTS ===== */
.products-section { padding: 80px 0; }
.section-header {
    text-align: center; margin-bottom: 56px;
}
.section-header h2 {
    font-size: 2.25rem; font-weight: 800;
    color: var(--white); margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.section-header p {
    color: var(--text-secondary); font-size: 1.05rem;
    max-width: 500px; margin: 0 auto;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.product-badge {
    position: absolute; top: 20px; right: 20px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 0.75rem; font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-badge.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.product-badge.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.product-badge.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.product-icon { font-size: 2.5rem; margin-bottom: 20px; }
.product-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.product-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; flex-grow: 1; }

.product-details {
    border-top: 1px solid var(--border);
    padding: 16px 0; display: flex; flex-direction: column; gap: 8px;
}
.detail-item { display: flex; justify-content: space-between; font-size: 0.85rem; }
.detail-item .label { color: var(--text-muted); }
.detail-item .val { font-weight: 600; color: var(--text); }

.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px;
}
.product-price { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.product-price span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 400; }
.buy-btn {
    padding: 8px 16px; border-radius: var(--radius-sm);
    background: var(--white); color: var(--bg);
    font-weight: 600; font-size: 0.85rem;
    transition: var(--transition);
}
.buy-btn:hover { background: var(--accent); color: var(--white); }

/* ===== FEATURES ===== */
.features-section { padding: 80px 0; background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.feature-card {
    padding: 32px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.feature-icon { font-size: 2.25rem; color: var(--accent); margin-bottom: 16px; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { padding: 80px 0; }
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px; margin: 0 auto;
}
.faq-item h4 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.faq-item p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 40px;
    background: var(--bg-secondary);
}
.footer-top {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--white); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    padding-top: 32px; text-align: center;
    color: var(--text-muted); font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-link { display: none; }
    .footer-top { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { flex-direction: column; gap: 16px; align-items: center; }
    .hero h1 { font-size: 2.5rem; }
    .faq-grid { grid-template-columns: 1fr; }
}

/* ===== MODAL "О СЕРВИСЕ" ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 540px;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 100px rgba(var(--accent-rgb), 0.05);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 10;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.03), transparent);
}

.modal-header h3 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-body {
    padding: 32px;
}

.modal-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.modal-nav-item .icon {
    font-size: 1.5rem;
}

.modal-nav-item .item-text {
    flex-grow: 1;
}

.modal-nav-item .title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 2px;
}

.modal-nav-item .desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.modal-nav-item .arrow {
    color: var(--text-muted);
    font-weight: bold;
    transition: var(--transition);
}

.modal-nav-item:hover .arrow {
    color: var(--accent);
    transform: translateX(2px);
}

.modal-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.modal-support-card {
    background: rgba(var(--accent-rgb), 0.03);
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.modal-support-card .card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-support-card .support-icon {
    font-size: 1.5rem;
}

.modal-support-card h4 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.modal-support-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.support-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.support-btn.telegram {
    background: var(--accent);
    color: var(--white);
}

.support-btn.telegram:hover {
    background: #e66b00;
    transform: translateY(-1px);
}

.support-btn.email {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
}

.support-btn.email:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .support-links {
        grid-template-columns: 1fr;
    }
    .modal-content {
        max-width: 100%;
    }
    .modal-header, .modal-body {
        padding: 20px;
    }
}

