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

.fancy {
    background-color: transparent;
    border: 2px solid #000;
    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;
}

.fancy::before {
    content: " ";
    width: 1.5625rem;
    height: 2px;
    background: black;
    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: black;
}

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

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

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

.fancy:hover {
    color: white;
    background: black;
}

.fancy:hover::before {
    width: 0.9375rem;
    background: white;
}

.fancy:hover .text {
    color: white;
    padding-left: 1.5em;
}

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

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

.button-3d {
    position: relative;
    height: 50px;
    padding: 0 30px;
    border: 2px solid #000;
    background: transparent;
    user-select: none;
    white-space: nowrap;
    transition: all .05s linear;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
}

.button-3d:before,
.button-3d:after {
    content: "";
    position: absolute;
    background: #F6F7F8;
    transition: all .2s linear;
}

.button-3d:before {
    width: calc(100% + 6px);
    height: calc(100% - 16px);
    top: 8px;
    left: -3px;
}

.button-3d:after {
    width: calc(100% - 16px);
    height: calc(100% + 6px);
    top: -3px;
    left: 8px;
}

.button-3d:hover {
    cursor: pointer;
}

.button-3d:active {
    transform: scale(0.95);
}

.button-3d:hover:before {
    height: calc(100% - 32px);
    top: 16px;
}

.button-3d:hover:after {
    width: calc(100% - 32px);
    left: 16px;
}

.button-3d span {
    font-size: 15px;
    z-index: 3;
    position: relative;
    font-weight: 600;
}

.contacts-info {
    position: absolute;
    top: calc(100% + 40px);
    left: 0;
    right: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 1000;
}

.contacts-info.show {
    opacity: 1;
    visibility: visible;
}

.contacts-info.hide {
    opacity: 0;
    visibility: hidden;
}

.about-info {
    position: absolute;
    top: calc(100% + 40px);
    left: 0;
    right: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 1000;
}

.about-info.show {
    opacity: 1;
    visibility: visible;
}

.about-info.hide {
    opacity: 0;
    visibility: hidden;
}

.requisites-link {
    font-size: 18px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    text-transform: uppercase;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: color;
    text-decoration: none;
}

.requisites-link:focus,
.requisites-link:hover {
    color: #000;
}

.requisites-link:focus:after,
.requisites-link:hover:after {
    width: 100%;
    left: 0%;
}

.requisites-link:after {
    content: "";
    pointer-events: none;
    bottom: -5px;
    left: 0%;
    position: absolute;
    width: 80%;
    height: 2px;
    background-color: #000;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

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

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

/* Анимация сдвига верхнего блока при открытии меню */
.main-content {
    transition: transform 0.3s ease-in-out;
}

.main-content.shifted-contacts {
    transform: translateY(-20vh);
}

.main-content.shifted-about {
    transform: translateY(-35vh);
}

.main-content.shifted-connection {
    transform: translateY(-25vh);
}

.connection-form {
    position: absolute;
    top: calc(100% + 40px);
    left: 0;
    right: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 1000;
}

.connection-form.show {
    opacity: 1;
    visibility: visible;
}

.connection-form.hide {
    opacity: 0;
    visibility: hidden;
}

/* Мобильная версия - ПРИНУДИТЕЛЬНЫЕ СТИЛИ */
@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;
    }

    /* Адаптация для мобильных блоков контента */
    .contacts-info,
    .about-info,
    .connection-form {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(246, 247, 248, 0.95) !important;
        padding: 20px !important;
        z-index: 2000 !important;
        overflow-y: auto !important;
    }

    /* Кнопка закрытия для мобильных */
    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2001;
    }

    .close-btn iconify-icon {
        width: 32px;
        height: 32px;
        color: #666;
    }

    .contacts-info .flex.gap-2.items-start {
        flex-direction: column !important;
    }

    .contacts-info .w-3\/5,
    .contacts-info .w-2\/5 {
        width: 100% !important;
    }

    /* Сдвиг верхнего блока на мобильных */
    .main-content.shifted-contacts,
    .main-content.shifted-about,
    .main-content.shifted-connection {
        transform: none !important;
    }
}

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

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

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

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

/* Центральная полоска остается неподвижной */
.vertical-line {
    opacity: 1;
    transform: none;
}