/* UKATECH — emergency mobile Hero fix
   Подключать ПОСЛЕ css/adaptive.css
*/

@media (max-width: 1024px) {
    .hero {
        overflow: hidden;
    }

    .hero .hero__container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    .hero .hero__text {
        width: 100% !important;
        min-width: 0 !important;
        align-items: center !important;
    }

    .hero .hero__media {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .hero .hero__character {
        display: block !important;
        width: min(88vw, 360px) !important;
        max-width: 360px !important;
        height: auto !important;
        margin: 0 auto !important;
        flex: 0 0 auto !important;
    }

    .hero .hero__neon-panel {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: min(100%, 420px) !important;
        max-width: 420px !important;
        margin: var(--space-lg) auto 0 !important;
        box-sizing: border-box !important;
        transform: none !important;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .hero .hero__character {
        width: min(84vw, 330px) !important;
        max-width: 330px !important;
    }

    .hero .hero__neon-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--space-md) !important;
    }

    .hero .hero__neon-text br {
        display: none !important;
    }
}
