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

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

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}
.svg-logo {
    width: 100px;
    height: auto;
}
.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.header-btn {
    padding: 10px 24px;
    border: 1.5px solid #1a1a1a;
    border-radius: 30px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}
.header-btn:hover {
    background: #1a1a1a;
    color: #fff;
}
.header-username-btn {
    background: #00A6FF;
    color: #fff;
    border-color: #00A6FF;
}
.header-username-btn:hover {
    background: #0090e0;
    border-color: #0090e0;
}

/* ===== HERO SECTION (компактный вариант) ===== */
.hero-new {
    margin: 0 20px 40px;
    max-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
}
.hero-envelope-container {
    position: relative;
    background: #00A6FF;
    border-radius: 24px;
    overflow: hidden;
    max-height: 100%;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.envelope-svg {
    width: 100%;
    height: auto;
    display: block;
    max-height: calc(100vh - 90px);
    object-fit: contain;
}
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 14%;
    padding-left: 8%;
    padding-right: 8%;
    pointer-events: none;
}
.hero-content-overlay > * {
    pointer-events: auto;
}
.hero-new-title {
    font-size: clamp(24px, 3.6vw, 44px);
    font-weight: 800;
    color: #00A6FF;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.hero-new-subtitle {
    font-size: clamp(13px, 1.4vw, 16px);
    color: #555;
    text-align: center;
    line-height: 1.45;
    margin-bottom: 20px;
    font-weight: 400;
    max-width: 640px;
}
.hero-new-cta {
    padding: 12px 30px;
    background: #1D1D1D;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    text-decoration: none;
}
.hero-new-cta:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== STEPS SECTION ===== */
.steps-section {
    padding: 60px 40px 80px;
    text-align: center;
}
.steps-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.steps-badge {
    background: #00A6FF;
    color: #fff;
    padding: 8px 24px;
    border-radius: 12px;
    font-size: 36px;
    font-weight: 800;
    display: inline-block;
}
.tilt-badge {
    transform: rotate(10deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}
.tilt-badge:hover {
    transform: rotate(0deg) scale(1.05);
}
.steps-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.step-card {
    background: #E8E8E8;
    border-radius: 16px;
    padding: 36px 30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    gap: 16px;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.step-icon {
    flex-shrink: 0;
}
.step-card-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: #1a1a1a;
}

/* ===== MODAL ===== */


/* ===== ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    .logo {
        font-size: 22px;
    }
    .header-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    .hero-new {
        margin: 0 12px 24px;
        max-height: calc(100vh - 80px);
    }
    .envelope-svg {
        max-height: calc(100vh - 80px);
    }
    .hero-content-overlay {
        padding-top: 12%;
        padding-left: 5%;
        padding-right: 5%;
    }
    .hero-new-title {
        font-size: clamp(20px, 5.5vw, 32px);
        margin-bottom: 10px;
    }
    .hero-new-subtitle {
        font-size: clamp(12px, 2.8vw, 14px);
        margin-bottom: 16px;
    }
    .hero-new-cta {
        padding: 10px 24px;
        font-size: 14px;
    }
    .steps-section {
        padding: 40px 20px 60px;
    }
    .steps-title {
        font-size: 28px;
    }
    .steps-badge {
        font-size: 24px;
        padding: 6px 18px;
    }
    .steps-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .step-card {
        min-height: auto;
        padding: 28px 24px;
    }
    .step-card-text {
        font-size: 16px;
    }
    .modal-card {
        padding: 30px 24px;
    }
    .modal-logo {
        left: 20px;
        font-size: 22px;
    }
    .close-modal {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-new {
        max-height: calc(100vh - 70px);
    }
    .envelope-svg {
        max-height: calc(100vh - 70px);
    }
    .hero-content-overlay {
        padding-top: 10%;
    }
    .steps-title {
        font-size: 24px;
        gap: 10px;
    }
    .steps-badge {
        font-size: 20px;
    }
}
