/* === RESPONSIVE HERO SECTION === */
/* Обновленный hero section для 100% viewport отображения */

.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../news.jpg?v=4');
    background-size: cover;
    background-position: calc(100% + 100px) center;
    background-repeat: no-repeat;
    background-color: #FCFBFC;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    margin-right: 80px;
}

/* Сдвиг текста влево только для экранов больше 767px */
@media (min-width: 768px) {
    .hero-text {
        margin-left: -410px;
    }
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1.1;
    color: #000000;
    margin-bottom: clamp(20px, 3vw, 32px);
    text-align: left;
}

.ai-text {
    color: #007670;
}

.hero-line {
    width: 100%;
    max-width: 800px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #007670 20%, #007670 80%, transparent 100%);
    margin: 0 auto clamp(20px, 3vw, 32px) auto;
    position: relative;
    overflow: hidden;
}

.hero-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    animation: lineShine 3s ease-in-out infinite;
}

.hero-subtitle {
    font-family: 'Unbounded', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.4;
    color: #3E3E3E;
    margin-bottom: clamp(30px, 4vw, 40px);
    text-align: left;
}

.hero-button {
    font-family: 'Unbounded', sans-serif;
    font-weight: 500;
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    color: #ffffff;
    background-color: #007670;
    border: none;
    border-radius: 12px;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 3vw, 32px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.hero-button:hover {
    background-color: #005b58;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 118, 112, 0.3);
}

.hero-button:active {
    transform: translateY(0);
}

/* === RESPONSIVE HOURGLASS ANIMATION === */
.animated-words-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.animated-word {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.875rem, 1.5vw, 1.5rem);
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    transform-origin: center center;
    z-index: 10;
}

/* Оригинальная анимация песочных часов */
@keyframes hourglassFlow {
    0% {
        transform: translateY(-100px) translateX(140px) rotateZ(0deg);
        opacity: 1;
    }
    
    /* Дополнительный кадр для плавности */
    20% {
        transform: translateY(150px) translateX(105px) rotateZ(20deg);
        opacity: 1;
    }
    
    /* Движение к горлышку с начальным поворотом */
    35% {
        transform: translateY(400px) translateX(70px) rotateZ(45deg);
        opacity: 1;
    }
    
    /* Приближение к центру */
    45% {
        transform: translateY(450px) translateX(65px) rotateZ(75deg);
        opacity: 1;
    }
    
    /* В центре горлышка - ОБЩАЯ ТОЧКА ПОВОРОТА */
    50% {
        transform: translateY(475px) translateX(60px) rotateZ(90deg);
        opacity: 1;
    }
    
    /* Продолжение движения вниз в вертикальном положении */
    60% {
        transform: translateY(575px) translateX(60px) rotateZ(90deg);
        opacity: 1;
    }
    
    /* Дополнительный кадр для плавного поворота */
    65% {
        transform: translateY(620px) translateX(57px) rotateZ(75deg);
        opacity: 1;
    }
    
    /* Выход из горлышка с обратным поворотом */
    70% {
        transform: translateY(650px) translateX(50px) rotateZ(45deg);
        opacity: 1;
    }
    
    /* Промежуточный кадр */
    85% {
        transform: translateY(850px) translateX(35px) rotateZ(20deg);
        opacity: 0.8;
    }
    
    /* Возвращение к горизонтальному положению */
    100% {
        transform: translateY(1000px) translateX(30px) rotateZ(0deg);
        opacity: 0;
    }
}

/* Альтернативная траектория для разнообразия */
@keyframes hourglassFlowAlt {
    0% {
        transform: translateY(-100px) translateX(140px) rotateZ(0deg);
        opacity: 1;
    }
    
    30% {
        transform: translateY(350px) translateX(80px) rotateZ(-30deg);
        opacity: 1;
    }
    
    /* В центре горлышка - ТА ЖЕ ТОЧКА ПОВОРОТА */
    50% {
        transform: translateY(475px) translateX(60px) rotateZ(-90deg);
        opacity: 1;
    }
    
    /* Продолжение движения вниз в вертикальном положении */
    60% {
        transform: translateY(575px) translateX(60px) rotateZ(-90deg);
        opacity: 1;
    }
    
    75% {
        transform: translateY(700px) translateX(40px) rotateZ(-30deg);
        opacity: 1;
    }
    
    100% {
        transform: translateY(1000px) translateX(20px) rotateZ(0deg);
        opacity: 0;
    }
}

/* Центральная траектория */
@keyframes hourglassFlowCenter {
    0% {
        transform: translateY(-80px) translateX(140px) rotateZ(0deg);
        opacity: 1;
    }
    
    40% {
        transform: translateY(420px) translateX(65px) rotateZ(60deg);
        opacity: 1;
    }
    
    /* В центре горлышка - ТА ЖЕ ТОЧКА ПОВОРОТА */
    50% {
        transform: translateY(475px) translateX(60px) rotateZ(90deg);
        opacity: 1;
    }
    
    /* Продолжение движения вниз в вертикальном положении */
    60% {
        transform: translateY(575px) translateX(60px) rotateZ(90deg);
        opacity: 1;
    }
    
    65% {
        transform: translateY(630px) translateX(55px) rotateZ(120deg);
        opacity: 1;
    }
    
    100% {
        transform: translateY(950px) translateX(35px) rotateZ(180deg);
        opacity: 0;
    }
}

/* Применение анимаций к разным траекториям */
.animated-word.trajectory-left {
    animation: hourglassFlow 10s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.animated-word.trajectory-right {
    animation: hourglassFlowAlt 10s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

.animated-word.trajectory-center {
    animation: hourglassFlowCenter 10s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

/* === WORD STYLES === */
.word-important {
    color: #007670;
    font-weight: 400;
}

.word-normal {
    color: #000000;
    font-weight: 400;
}

.word-neutral {
    color: #000000;
    font-weight: 400;
}

/* === НАСТРОЙКА ШРИФТА ДЛЯ ДИАПАЗОНА 767PX - 1400PX === */
@media (min-width: 767px) and (max-width: 1400px) {
    .hero-title {
        font-size: clamp(2.4rem, 4vw, 3.8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 1.6vw, 1.125rem);
    }
}

/* === DESKTOP BREAKPOINTS === */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 1600px;
        padding: 0 60px;
    }
    
    .hero-text {
        max-width: 700px;
        margin-right: 100px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-content {
        max-width: 1200px;
        padding: 0 50px;
    }
    
    .hero-text {
        max-width: 550px;
        margin-right: 70px;
    }
}

/* === TABLET === */
@media (max-width: 1023px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 40px 30px;
    }
    
    .hero-text {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-line {
        margin-left: auto;
        margin-right: auto;
        max-width: 650px;
    }
    
    .animated-words-container {
        width: 100%;
        height: 100%;
        top: 0;
        bottom: auto;
    }
}

/* === MOBILE === */
@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
        padding: 20px 0;
        position: relative;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.70);
        z-index: 1;
        pointer-events: none;
    }
    
    .hero-content {
        padding: 20px;
        position: relative;
        z-index: 2;
    }
    
    .hero-text {
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 20px;
    }
    
    .hero-line {
        max-width: 350px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 4vw, 1.125rem);
        margin-bottom: 30px;
    }
    
    .hero-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .animated-words-container {
        height: 100%;
        top: 0;
        z-index: 0;
    }
    
    .animated-word {
        font-size: 18px;
    }
}

/* === SMALL MOBILE === */
@media (max-width: 480px) {
    .hero-content {
        padding: 15px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }
    
    .hero-line {
        max-width: 280px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 4.5vw, 1rem);
    }
} 