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

:root {
    --bg-color: #0A0A0A;
    --surface-color: #1A1A1A;
    --accent-purple: #8B5CF6;
    --accent-green: #10B981;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --beige: #F5F5F4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition-premium: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-premium);
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-premium);
    gap: 12px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    background: #7c3aed;
}

.btn-outline {
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent-purple);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: url('../img/hero-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.trust-badges {
    display: flex;
    gap: 32px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-item span {
    color: var(--accent-purple);
}

/* Card Styles */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: var(--transition-premium);
}

.card:hover {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.05);
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.problem-card h3 {
    color: var(--accent-purple);
    font-size: 1.25rem;
}

/* Solution section */
.solution {
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.05), transparent);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.1);
}

.solution-steps {
    list-style: none;
}

.solution-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: auto;
    color: var(--accent-green);
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.case-card {
    background: #111;
}

.case-stat {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

/* Footer / Contact */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--glass-border);
}

.contact-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.social-links {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.social-link {
    width: 48px;
    height: 48px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transform: translateY(100px);
    transition: var(--transition-premium);
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .solution-grid, .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        background: #0A0A0A; /* Плотный фон для мобильных */
        padding: 15px 0;
    }

    .container {
        padding: 0 20px;
    }

    nav {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 15px; /* Уменьшаем отступы между ссылками */
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .hero {
        padding-top: 100px; /* Смещаем контент ниже фиксированной шапки */
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    h1 {
        font-size: 2.2rem; /* Уменьшаем размер заголовка */
        line-height: 1.2;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
    }
    
    .contact-wrap {
        flex-direction: column;
    }
}
