/* --- Базовые настройки --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    line-height: 1.4;
    background-color: #f4f4f4; /* Светлый фон для средней секции */
}

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

.green-text {
    color: #25D366; /* Цвет Telegram */
}

/* --- ВЕРХНИЙ БЛОК (Hero) --- */
.hero-section {
    position: relative;
    /* Используем 3.jpg как фон */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('3.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh; /* На весь экран */
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 50px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 60px;
}

.logo span {
    display: block;
    font-size: 0.6rem;
    opacity: 0.7;
    margin-top: 5px;
    text-transform: none;
}

.nav-links {
    display: flex;
    gap: 15px;
    opacity: 0.7;
}

/* Badge над заглавието */
.hero-badge {
    display: inline-block;
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.4);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease both;
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease 0.15s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Кнопки */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #25D366; /* Зеленый Telegram */
    color: #ffffff;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-primary:hover {
    background-color: #1eb954;
    transform: translateY(-2px);
}

/* Движеща се стрелка при hover */
.btn-primary .arrow {
    transition: transform 0.3s ease;
}
.btn-primary:hover .arrow {
    transform: translateX(5px);
}

.sub-cta {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 15px;
    padding-left: 10px;
}

/* --- БЛОК "Как работи" --- */
.how-it-works {
    background-color: #f9f9f9;
    color: #111;
    padding: 80px 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.step-num {
    position: absolute;
    top: -15px;
    left: -15px;
    background-color: #25D366;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.step-card p {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.step-card small {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.arrow-sep {
    font-size: 2rem;
    color: #ccc;
    font-weight: bold;
}

/* --- НИЖНИЙ БЛОК (Final CTA) --- */
.final-cta-section {
    position: relative;
    /* Используем 2.jpg как фон */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('2.jpg');
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}

.final-cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.2;
}

.footer-note {
    margin-top: 30px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
    text-transform: uppercase;
}

/* Ред с доверие във финалната секция */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    font-size: 0.85rem;
    opacity: 0.8;
    flex-wrap: wrap;
}
.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Адаптивность (Мобильные устройства) --- */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }

    .top-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        font-size: 0.7rem;
    }

    .btn-primary {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .steps-grid {
        flex-direction: column;
    }

    .arrow-sep {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .step-card {
        width: 100%;
        max-width: 250px;
    }

    .final-cta-section h2 {
        font-size: 2rem;
    }

    .hero-badge { font-size: 0.7rem; padding: 5px 12px; }
    .trust-row { gap: 15px; font-size: 0.75rem; }
}