@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes soft-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-img {
    overflow: hidden;
}

.hero-img h2 {
    animation: rise-in 0.9s ease both;
}

html.motion .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.motion .reveal.is-in {
    opacity: 1;
    transform: none;
}

html.motion img.reveal.is-in:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

html.motion .catalog-flex .card.reveal.is-in:hover {
    transform: translateY(-5px);
}

header .nav-list li a {
    position: relative;
}

header .nav-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    background: var(--tertiary-color, rgb(109, 162, 176));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

header .nav-list li a:hover::after,
header .nav-list li a:focus-visible::after {
    transform: scaleX(1);
}

.search-car button,
#button-view,
.search-btn,
.read-more,
.contact-container button,
.success-card button,
.success-card a {
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.search-car button:hover,
#button-view:hover,
.search-btn:hover,
.read-more:hover,
.contact-container button:hover,
.success-card button:hover,
.success-card a:hover {
    transform: translateY(-2px);
}

.car-part .card:hover,
.products-img img,
.img-mechanic img,
.description1-stores img,
.description2-stores img {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.products-img img:hover,
.img-mechanic img:hover,
.description1-stores img:hover,
.description2-stores img:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .hero-img h2 {
        animation: none;
    }

    html.motion .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
