.montserrat {
    font-family: 'Montserrat', sans-serif;
}


.fancy {
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 1.25em 2em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    min-width: 200px;
    min-height: 50px;
}

.fancy::before {
    content: " ";
    width: 1.5625rem;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 1.5em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
    font-size: 1.125em;
    line-height: 1.33333em;
    padding-left: 2em;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}

.fancy .top-key {
    height: 2px;
    width: 1.5625rem;
    top: -2px;
    left: 0.625rem;
    position: absolute;
    background: #091E42;
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
    height: 2px;
    width: 1.5625rem;
    right: 1.875rem;
    bottom: -2px;
    position: absolute;
    background: #091E42;
    transition: width 0.3s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
    height: 2px;
    width: 0.625rem;
    right: 0.625rem;
    bottom: -2px;
    position: absolute;
    background: #091E42;
    transition: width 0.3s ease-out, right 0.3s ease-out;
}

.fancy:hover {
    color: #091E42;
    background: #fff;
}

.fancy:hover::before {
    width: 1.5625rem;
    background: #091E42;
}

.fancy:hover .text {
    color: #091E42;
    padding-left: 2em;
}

.fancy:hover .top-key {
    left: -2px;
    width: 0px;
}

.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
    right: 0;
    width: 0;
}



/* Убираем скролл при загрузке страницы */
body {
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: 'Montserrat', sans-serif;
}

/* Показываем скролл только когда нужно */
body.scroll-enabled {
    overflow-y: auto;
}



/* Мобильная версия - ПРИНУДИТЕЛЬНЫЕ СТИЛИ */
@media (max-width: 768px) {
    
    /* Основной контейнер */
    .main-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        padding: 20px !important;
    }
    
    /* ЛОГОТИП - ПЕРВЫЙ ЭЛЕМЕНТ */
    .main-content > div:first-child {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 20px !important;
        flex-shrink: 0 !important;
    }
    
    .main-content > div:first-child img {
        height: 120px !important;
        max-width: 100% !important;
        width: auto !important;
        display: block !important;
    }
    
    /* Переопределяем Tailwind классы для логотипа */
    .logo-container {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 20px !important;
        flex-shrink: 0 !important;
    }
    
    /* СКРЫВАЕМ ВЕРТИКАЛЬНУЮ ПОЛОСКУ */
    .main-content > div:nth-child(2) {
        display: none !important;
    }
    
    /* КНОПКИ - ВТОРОЙ ЭЛЕМЕНТ */
    .main-content > div:last-child {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        flex-shrink: 0 !important;
    }
    
    /* Кнопка "Перейти на сайт" */
    .main-content > div:last-child > a.fancy {
        width: 100% !important;
        text-align: center !important;
        order: 1 !important;
        display: block !important;
    }
    
    /* Контейнер с кнопками "О компании" и "Контакты" */
    .main-content > div:last-child > div {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        order: 2 !important;
    }
    
    /* Кнопки "О компании" и "Контакты" */
    .main-content > div:last-child .button-3d {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        display: block !important;
    }
    
    /* Переопределяем Tailwind классы для кнопок */
    .main-content .flex.justify-center.flex-col.space-y-4 {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
}

/* Анимации при загрузке страницы */
.logo-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.logo-container.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для описания - появляется первым */
.description-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.description-text.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для заголовка BOOMERANG - появляется позже */
.boomerang-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.boomerang-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.buttons-container {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
}

.buttons-container.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для полоски - выезжает снизу как кнопки */
.vertical-line {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease-out;
}

.vertical-line.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для страницы подключения */
/* Анимации появления */
.logo-animate {
    opacity: 0;
    transition: opacity 0.3s ease-out, margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto !important;
    height: 80px !important;
    flex-shrink: 0 !important;
    margin-bottom: 20px;
}

.logo-animate.animate {
    opacity: 1;
}

.logo-animate.compact {
    margin-bottom: 0;
}

.form-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.form-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.support-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.support-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для плавного появления ошибок */
.error-message {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 50px;
    visibility: visible;
}

.error-message.hide {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    visibility: hidden;
}

/* Анимация для полей с ошибками */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Анимация тряски при повторной отправке с ошибками */
.input-error.shake {
    animation: shake 0.4s ease-in-out !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Дублированные стили удалены - используются стили выше */


