/* === VARIABLES === */
:root {
    --bg-color: #070707;
    --bg-secondary: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #a1a1a1;
    --accent-orange: #ff6b35;
    --accent-red: #e63946;
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #e63946 100%);
    --nav-height: 70px;
    --radius: 20px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* === UTILITIES === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 90px 0; }
.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dark-section { background-color: var(--bg-secondary); }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }
.section-header.center { text-align: center; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    background: var(--text-main);
    color: var(--bg-color);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    transition: 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 107, 53, 0.4); }

/* === HEADER === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(7, 7, 7, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo-wrapper { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 35px; }
.nav-brand { font-weight: 700; font-size: 1.3rem; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--text-muted); font-weight: 500; transition: 0.3s; }
.nav-link:hover { color: #fff; }

/* === HERO === */
.hero {
    padding: calc(var(--nav-height) + 60px) 0 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-container { display: flex; justify-content: center; align-items: center; }
.hero-content { max-width: 800px; }
.hero-icon {
    width: 100px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}
.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}
.coming-soon {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 30px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
}
.pricing-note { font-size: 0.9rem; color: var(--text-muted); margin-top: 15px; opacity: 0.8; }

/* === FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 30px;
    transition: 0.3s ease;
}
.feature-card:hover { border-color: var(--accent-orange); transform: translateY(-5px); }
.feature-icon {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* === USE CASES === */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.case-item { text-align: center; padding: 20px; }
.case-item i {
    font-size: 2.5rem; margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.case-item h4 { font-size: 1.3rem; margin-bottom: 8px; }
.case-item p { color: var(--text-muted); }

/* === HOW TO === */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
}
.step-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* === FAQ (FIXED: NO DISAPPEARING) === */
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
}
.faq-question i { transition: transform 0.4s ease; color: var(--text-muted); }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/.faq-answer {
    max-height: 0;              /* Скрыто по умолчанию */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    padding: 0 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 500px;          /* Открыто при активации */
    padding: 0 25px 20px 25px;
}

/* === FOOTER === */
.footer { background: #020202; padding: 50px 0 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-container { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; }
.footer-logo { width: 30px; }
.footer-links a, .footer-contact a { color: var(--text-muted); margin: 0 10px; font-size: 0.9rem; transition: 0.3s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: #333; margin-top: 10px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .section-header h2 { font-size: 2.4rem; }
}
@media (max-width: 768px) {
    .nav-brand { display: none; }
    .nav-right .nav-link { display: none; }
    .hero { min-height: 70vh; }
    .hero-icon { width: 80px; }
    .hero-title { font-size: 2.2rem; }
    .section-header h2 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .step { max-width: 100%; }
    .footer-links { display: flex; flex-direction: column; gap: 10px; }
}

/* === ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.9s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }