@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
    --bg-deep: #050507;
    --bg-surface: #0f1216;
    --bg-card: rgba(20, 25, 30, 0.6);
    
    --primary: #00e599;       
    --primary-glow: rgba(0, 229, 153, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo { font-family: 'Outfit', sans-serif; }

/* --- LIVE BACKGROUND --- */
#canvas-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}

/* --- LAYOUT UTILS --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
    width: 100%;
}

/* --- HEADER --- */
header {
    height: var(--nav-height);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { 
    font-size: 1.4rem; font-weight: 800; color: #fff; text-decoration: none; 
    display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px;
}
.logo svg {
    width: 36px; height: 36px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 153, 0.4));
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: 0.3s; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* --- BUTTONS (NEW) --- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 14px 32px; font-size: 1rem; font-weight: 700; font-family: 'Outfit', sans-serif;
    border-radius: 12px; border: none; cursor: pointer; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); z-index: 1; text-decoration: none;
}
.btn:active { transform: scale(0.96); }

.btn-neon {
    background: var(--primary); color: #050507;
    box-shadow: 0 0 20px rgba(0, 229, 153, 0.2);
}
.btn-neon::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: 0.5s; z-index: -1; transform: skewX(-20deg);
}
.btn-neon:hover {
    background: #00ffaa; color: #000;
    box-shadow: 0 0 30px rgba(0, 229, 153, 0.5); transform: translateY(-2px);
}
.btn-neon:hover::before { left: 100%; }

.btn-glass {
    background: rgba(255, 255, 255, 0.03); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
}
.btn-glass:hover {
    border-color: var(--primary); background: rgba(0, 229, 153, 0.1);
    color: var(--primary); transform: translateY(-2px);
}

.btn-sm { padding: 10px 24px; font-size: 0.9rem; border-radius: 50px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; transition: 0.3s; }
.btn:hover svg { transform: translateX(3px); }

/* --- HERO & WIDGET --- */
.hero { padding: 160px 0 100px; text-align: center; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.1; margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 40%, var(--text-muted) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 50px; }

.checker-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 700px; margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.tabs { display: flex; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); }
.tab { flex: 1; padding: 15px; cursor: pointer; color: var(--text-muted); font-weight: 500; text-align: center; transition: 0.3s; }
.tab.active { background: var(--bg-surface); color: var(--primary); border-top: 2px solid var(--primary); }
.tab:hover { color: #fff; }

.tab-content { padding: 30px; display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.input-row { display: flex; gap: 10px; align-items: stretch; }
.input-field {
    flex: 1; background: #080a0d; border: 1px solid var(--border); color: #fff;
    padding: 14px 20px; border-radius: 8px; font-size: 1rem; outline: none; transition: 0.3s;
    min-width: 0; /* Fix flex overflow */
}
.input-field:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 229, 153, 0.1); }

/* --- SECTIONS --- */
section { position: relative; z-index: 2; }
.seo-section { padding: 80px 80px; border-top: 1px solid var(--border); }
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.seo-text h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.seo-card { background: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid var(--border); }

/* --- PRICING (FIXED SPACING) --- */
#pricing { 
    padding-top: 100px; 
    padding-bottom: 120px; /* Большой отступ снизу, чтобы не прилипало */
}

.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
    margin-top: 60px;
    padding: 20px; /* Внутренний отступ для тени при scale */
}

.price-card {
    background: var(--bg-surface); border: 1px solid var(--border); 
    border-radius: 16px; padding: 40px; position: relative; transition: 0.3s;
    display: flex; flex-direction: column;
}
.price-card:hover { border-color: var(--primary); transform: translateY(-5px); }

.price { font-size: 3rem; font-weight: 700; color: #fff; margin: 20px 0; font-family: 'Outfit'; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.features { margin-bottom: 30px; flex-grow: 1; }
.features li { list-style: none; margin-bottom: 12px; color: var(--text-muted); display: flex; gap: 10px; }
.features li::before { content: '✓'; color: var(--primary); font-weight: bold; }

/* --- CONTACT SECTION --- */
    .contact-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .contact-form-card { 
        padding: 25px 20px; /* Уменьшили боковые отступы с 40px до 20px */
        margin: 0 -10px; /* Небольшой отрицательный отступ, чтобы визуально расширить карточку */
        width: calc(100% + 20px); /* Компенсация margin */
    }
.form-input, .form-textarea {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 16px; color: #fff; font-size: 1rem; margin-bottom: 20px; outline: none;
}
.form-input:focus { border-color: var(--primary); }

/* --- FAQ & FOOTER --- */
.faq-grid { display: grid; gap: 20px; max-width: 800px; margin: 40px auto 0; }
.faq-item { background: var(--bg-surface); padding: 25px; border-radius: 12px; border: 1px solid var(--border); }

footer { padding: 80px 0 30px; border-top: 1px solid var(--border); background: #020203; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.f-link { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; }
.f-link:hover { color: var(--primary); }

/* --- MOBILE ADAPTATION (FIXED) --- */
.burger { display: none; cursor: pointer; }
.mobile-menu {
    position: fixed; top: var(--nav-height); left: 0; width: 100%; height: 100vh;
    background: var(--bg-deep); z-index: 999; padding: 40px;
    transform: translateX(100%); transition: 0.3s;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a { display: block; font-size: 1.5rem; color: #fff; text-decoration: none; margin-bottom: 25px; font-weight: 700; }

@media(max-width: 900px) {
    .nav-links { display: none; }
    .burger { display: block; } 
    
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero h1 { font-size: 2.2rem; } /* Уменьшил шрифт заголовка */
    
    .seo-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* Исправление виджета на мобильных */
    .input-row { flex-direction: column; } 
    .input-field { width: 100%; margin-bottom: 10px; }
    .btn { width: 100%; justify-content: center; } /* Кнопки на всю ширину */
    
    /* Исправление прайсинга */
    .pricing-grid { 
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 30px; 
        padding: 10px; 
    }
    
    /* Карточка Pro больше не вылезает */
    .price-card[style*="scale"] { transform: none !important; }
    
    .contact-form-card { padding: 25px; }
}
/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 400px;
    background: rgba(15, 18, 22, 0.95); /* Почти непрозрачный темный */
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    padding: 25px;
    border-radius: 16px;
    z-index: 9999;
    
    /* Скрыт по умолчанию (пока JS не проверит) */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cookie-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Мобильная адаптация баннера */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 20px 20px 0 0; /* Закругление только сверху */
        border-bottom: none;
        border-left: none;
        border-right: none;
    }
    .cookie-actions .btn {
        flex: 1; /* Кнопки на всю ширину */
        justify-content: center;
    }
}