.mg-hero {
    position: relative;
    overflow-x: clip;
    padding: 1.875rem 0 2.5rem;
}

.mg-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mg-hero__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--mg-accent) 0%, transparent 72%);
    opacity: 0.35;
}

.mg-hero__glow--1 {
    top: -4rem;
    right: 8%;
}

.mg-hero__glow--2 {
    bottom: -6rem;
    left: -8rem;
}

.mg-hero__container {
    position: relative;
    z-index: 1;
}

.mg-hero__layout {
    position: relative;
}

.mg-hero__content {
    max-width: 430px;
    padding-top: 0.5rem;
}

.mg-hero__title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.85rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.mg-hero__title-accent {
    position: relative;
    z-index: 3;
    display: block;
    color: var(--mg-accent);
}

.mg-hero__title-line {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--mg-text);
}

.mg-hero__lead {
    position: relative;
    z-index: 2;
    margin: 0 0 1.25rem;
    font-size: clamp(1.375rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
    max-width: 430px;
}

.mg-hero__lead strong {
    font-weight: 700;
}

.mg-hero__text {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    max-width: 353px;
    color: rgba(255, 255, 255, 0.92);
}

.mg-hero__text + .mg-hero__text {
    margin-top: 1rem;
}

.mg-hero__foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 7.85vw, 7.0625rem);
    margin-top: 2.5rem;
}

.mg-hero__btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: auto;
    min-width: 246px;
    height: 50px;
    padding: 0 1.375rem;
    border: 1px solid var(--mg-accent);
    border-radius: 65px;
    background: #423c28;
    color: var(--mg-accent);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    box-shadow: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.mg-hero__btn svg {
    flex-shrink: 0;
}

.mg-hero__btn:hover {
    background: #4f482f;
    border-color: var(--mg-accent);
    color: var(--mg-accent);
}

.mg-hero__visual {
    position: absolute;
    top: 0;
    left: clamp(10rem, 30%, 26rem);
    right: clamp(-7rem, -4vw, -2rem);
    z-index: 2;
    pointer-events: none;
}

.mg-hero__car {
    display: block;
    width: min(100%, 943px);
    max-width: 943px;
    margin: 0 0 0 auto;
}

.mg-hero__car picture {
    display: block;
}

.mg-hero__car img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.mg-hero__social {
    position: absolute;
    top: 1.5rem;
    right: clamp(1rem, 4vw, 135px);
    z-index: 3;
}

.mg-hero__social-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    margin: 0;
    padding: 0.75rem 0.625rem;
    list-style: none;
    border-radius: 65px;
    background: var(--mg-menu-bg);
}

.mg-hero__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mg-accent);
    transition: opacity 0.2s ease;
}

.mg-hero__social-link:hover {
    opacity: 0.9;
}

.mg-hero__social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mg-hero__stats {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    min-width: 0;
    max-width: 811px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mg-hero__stat {
    flex: 0 1 auto;
    min-width: 0;
}

.mg-hero__stat-value {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 4vw, 3.125rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.mg-hero__stat-label {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1199px) {
    .mg-hero__visual {
        left: clamp(9rem, 26%, 21rem);
        right: clamp(-5rem, -3vw, -1rem);
    }

    .mg-hero__car {
        max-width: 700px;
    }

    .mg-hero__content {
        max-width: 380px;
    }
}

@media (max-width: 991px) {
    .mg-hero {
        padding-top: 1rem;
    }

    .mg-hero__container {
        display: flex;
        flex-direction: column;
    }

    .mg-hero__visual {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        order: 2;
        margin-top: 1.5rem;
        pointer-events: auto;
    }

    .mg-hero__title-accent,
    .mg-hero__title-line,
    .mg-hero__lead,
    .mg-hero__text {
        z-index: auto;
    }

    .mg-hero__layout {
        order: 1;
    }

    .mg-hero__content {
        max-width: none;
    }

    .mg-hero__car {
        max-width: none;
        margin: 0 auto;
    }

    .mg-hero__social {
        position: static;
        order: 3;
        margin-top: 1rem;
    }

    .mg-hero__social-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 999px;
        width: fit-content;
        margin: 0 auto;
    }

    .mg-hero__text {
        max-width: none;
    }

    .mg-hero__foot {
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .mg-hero__stats {
        max-width: none;
    }

    .mg-hero__stat {
        flex: 1 1 calc(50% - 0.75rem);
    }
}

@media (max-width: 639px) {
    .mg-hero__title {
        margin-bottom: 1rem;
    }

    .mg-hero__btn {
        width: 100%;
        max-width: none;
    }

    .mg-hero__stat {
        flex: 1 1 100%;
    }
}

/* ---- Hero entrance animations (как на motorsgroup.by) ---- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes mg-hero-drive-in {
        from {
            opacity: 0;
            transform: translate3d(0, 64px, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes mg-hero-fade-up {
        from {
            opacity: 0;
            transform: translate3d(0, 28px, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    @keyframes mg-hero-fade-left {
        from {
            opacity: 0;
            transform: translate3d(-32px, 0, 0);
        }

        to {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }
    }

    /* Car drives in from below once on page load */
    .mg-hero__car {
        opacity: 0;
        animation: mg-hero-drive-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .mg-hero__title,
    .mg-hero__lead,
    .mg-hero__text,
    .mg-hero__foot {
        opacity: 0;
    }

    /* Staggered text reveal */
    .mg-hero__title {
        animation: mg-hero-fade-up 0.9s ease both;
    }

    .mg-hero__lead {
        animation: mg-hero-fade-left 0.9s ease 0.15s both;
    }

    .mg-hero__text {
        animation: mg-hero-fade-left 0.9s ease 0.3s both;
    }

    .mg-hero__text + .mg-hero__text {
        animation-delay: 0.4s;
    }

    .mg-hero__foot {
        animation: mg-hero-fade-up 0.9s ease 0.45s both;
    }
}
