@import 'styles.css';
@import 'empty_states.css';

@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.site-title {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.hello-section {
    padding-top: 96px;
    padding-bottom: 96px;
}


.hello-section img {
    max-width: 120px;
    margin-bottom: 56px;
}

/* Адаптация логотипа для светлой темы */
[data-theme="light"] .hello-section img {
    filter: invert(1) brightness(0.2);
}

.hello-section .hero-btns {
    margin-top: 56px;
}

.hello-section p {
    color: var(--font-secondary);
    font-size: var(--font-size-lg);
}

.hero-title {
    text-align: center;
    font-size: var(--font-size-hero) !important;
    color: var(--font-primary) !important;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-home {
    background-color: #F15A30;
    min-height: 70vh;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.hero-home .container {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 70vh;
}

.hero-content {
    width: 50%;
    padding: 32px;
    position: relative;
    z-index: 2;
    margin-left: auto; /* Прижимаем контент вправо */
}

.hero-title {
    font-family: 'Tektur', sans-serif;
    font-size: var(--font-size-hero-xl);
    color: var(--font-primary);
    margin-bottom: 1.5rem;
}

.hero-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--font-secondary);
    max-width: 600px;
}

/* Добавляем стили для контейнера изображения */
.hero-image {
    position: absolute;
    bottom: 0;
    left: 0; /* Меняем right на left */
    z-index: 1;
    max-width: 760px;
    opacity: 0.9;
}

@media (max-width: 991.98px) {
    .hero-content {
        width: 100%;
        background: rgba(241, 90, 48, 0.8); /* Добавляем полупрозрачный фон для читаемости */
    }
    
    .hero-image {
        opacity: 0.5;
    }

    .hello-section {
        padding-top: 32px;
        padding-bottom: 64px;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    .hello-section img {
        margin-bottom: 40px;
    }

    .hello-section .hero-btns {
        margin-top: 40px;
    }

    .site-title h1 {
        font-size: var(--font-size-3xl) !important;
    }

    .hero-title {
        text-align: left;
        display: block;
        line-height: 1.2; /* Фиксированная высота строки */
    }

    .hero-title .changing-word {
        margin-left: 0px;
    }

    .changing-word {
        min-width: 120px; /* Меньшая ширина для мобильных */
        display: inline-block;
    }
}

.features-section {
    position: relative;
    z-index: 3;
}

.feature-card {
    transition: transform 0.3s ease;
    border: none;
    background: var(--bg-content-main);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: var(--bg-content-secondary);
    border-color: var(--border-tertiary);
}

.feature-icon {
    color: #F15A30;
}

.changing-word {
    font-weight: 800;
    display: inline-block;
    position: relative;
    border-right: 2px solid #F15A30;
    white-space: nowrap;
    overflow: hidden;
    animation: blink-caret 0.75s step-end infinite;
    margin-left: 8px;
    color: #F15A30;
    padding-right: 5px;
    min-height: 1.2em; /* Фиксированная минимальная высота */
    vertical-align: bottom; /* Выравнивание по нижней линии */
}

@keyframes wordChange {
    0%, 30% {
        opacity: 1;
    }
    33%, 36% {
        opacity: 0;
    }
    39%, 63% {
        opacity: 1;
    }
    66%, 69% {
        opacity: 0;
    }
    72%, 96% {
        opacity: 1;
    }
    97%, 100% {
        opacity: 0;
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #F15A30 }
}