/* pages/main/hero/hero.css */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    border-radius: var(--border-radius-background);
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--spacing-md);
}

.hero-card {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-background);
    padding: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.hero-logo {
    margin-bottom: var(--spacing-lg);
}

.hero-lightning {
    color: var(--color-black) !important;
}

.logo-image {
    height: 60px;
    width: auto;
}

.hero-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    text-transform: uppercase;
}

.static-text {
    color: var(--color-white);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.typewriter-container {
    display: block;
    min-height: 1.2em;
}

.typewriter-text {
    color: var(--color-yellow);
    display: inline;
}

.typewriter-cursor {
    color: var(--color-yellow);
    animation: blink 1s infinite;
    font-weight: var(--font-weight-normal);
    display: inline;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.cta-buttons {
    margin-bottom: var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.cta-buttons .btn {
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

.hero-logo .logo-image {
    transform: scale(1.3);
    transform-origin: left center; /* Масштабирование от левого края */
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }
    40% {
        transform: rotate(45deg) translate(-10px, -10px);
    }
    60% {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        height: 80vh;
    }
    
    .hero-card {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: var(--font-size-h1-tablet);
        margin-bottom: var(--spacing-md);
        line-height: 1.2;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .cta-buttons .btn {
        font-size: var(--font-size-p-tablet);
        padding: 0 var(--spacing-md);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .hero-section {
        min-height: 400px;
        height: 70vh;
    }
    
    .hero-card {
        padding: var(--spacing-md);
        margin: 0 var(--spacing-xs);
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-size-h1-mobile);
        margin-bottom: var(--spacing-md);
        line-height: 1.3;
    }
    
    .logo-image {
        height: 40px;
        margin: 0 auto;
    }
    
    .scroll-indicator {
        display: none;
    }

    .hero-logo .logo-image {
        transform: scale(1.3);
        transform-origin: center center; /* Центрированное масштабирование на мобильных */
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-buttons .btn {
        font-size: var(--font-size-p-mobile);
        padding: 0 var(--spacing-sm);
        white-space: normal;
        text-align: center;
        min-height: var(--btn-height-sm);
        width: 100%;
        max-width: 280px;
    }
}

/* Дополнительные медиа-запросы для очень маленьких экранов */
@media (max-width: 360px) {
    .hero-card {
        padding: var(--spacing-sm);
    }
    
    .cta-buttons .btn {
        font-size: 12px;
        padding: 0 var(--spacing-xs);
    }
    
    .hero-title {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .static-text {
        font-size: 16px;
    }
}