/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/hero-bg.jpg") center/cover no-repeat;
    filter: blur(10px) brightness(0.7);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(103, 80, 164, 0.3),
        rgba(125, 82, 96, 0.3)
    );
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-container),
        var(--tertiary-container)
    );
    opacity: 0.6;
    filter: blur(40px);
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: 200px;
    animation-delay: 10s;
}

.hero-content {
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--tertiary));
    color: var(--on-primary);
    box-shadow: var(--dp02);
}

.btn-primary:hover {
    box-shadow: var(--dp04);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: absolute;
    right: 5%;
    bottom: 10%;
    width: 40%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

.phone-mockup {
    width: 280px;
    height: 500px;
    background: var(--surface);
    border-radius: var(--radius-xxl);
    padding: var(--spacing-md);
    box-shadow: var(--dp06);
    border: 4px solid var(--outline-variant);
    animation: float 6s infinite ease-in-out;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: calc(var(--radius-xxl) - 8px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-content {
    padding: var(--spacing-md);
    color: white;
    text-align: center;
}

.app-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.app-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    margin: 0 auto;
}

/* Адаптивность для hero */
@media (max-width: 992px) {
    .hero-content,
    .hero-visual {
        position: relative;
        width: 100%;
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        position: relative;
        margin-top: var(--spacing-xl);
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    .hero-visual {
        display: none;
    }
    .hero-content {
        text-align: center;
        padding: 20px;
        margin: 0 auto;
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
}

/* Стили для растянутого фона на мобильных */
@media (max-width: 768px) {
    .hero-background .hero-image {
        background: url("images/phonescreen.jpg") center/cover no-repeat !important;
        filter: blur(5px) brightness(0.6) !important;
    }
}
