/* =========================================================
   Посадочная страница «Крот» — стили
   ========================================================= */
@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/gilroy/gilroy_semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/gilroy/gilroy_bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/gilroy/gilroy_medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
.mole-scene {
    position: relative;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.mole-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.mole-frame img {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%;
    opacity: 1;
    object-fit: cover;
}

/* ---------- Белый текст слева по центру ---------- */
.mole-text {
    position: absolute;
    top: 45%;
    left: 2%;
    transform: translateY(-50%);
    width: 46%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 3% 4%;
    box-sizing: border-box;
    text-align: left;
    color: #ffffff;
    font-family: 'Gilroy', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(20px, 2.2vw, 35.47px);
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mole-text.is-loading {
    opacity: 0;
}

/* ---------- Появление текста: взлетает снизу вверх ---------- */
.mole-caption {
    display: block;
    white-space: nowrap
}

.mole-caption.mole-rise {
    animation: moleRise 2s cubic-bezier(0.22, 0.5, 0.25, 1) both;
}

@keyframes moleRise {
    0%   { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Кнопка на финальном кадре ---------- */
.mole-text .mt-5 {
    margin: 16px 0 0;
}

.mole-text .mt-5[hidden] {
    display: none;
}

.goto {
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .mole-text {
        font-size: clamp(8px, 2.4vw, 22px);
        width: 56%;
        left: 0%;
        white-space: nowrap;
        top: 10%;
    }
    .mole-text .goto {
        font-size: 14px;
        padding: 14px 10px;
    }
}

@media (max-width: 640px) {
    .mole-frame {
        height: auto;
        min-height: 100vh;
    }
      .mole-frame img {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 80%;
        

    }
    .mole-text {
        font-size: clamp(11px, 3.2vw, 12px);
        width: 72%;
        left: 0%;
        top: 7%;
    }
    .mole-text .goto {
        font-size: 13px;
        padding: 10px 16px;
    }
}