/* HERO */

.engine-hero {
    min-height: 85vh;

    padding: 60px 8%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            rgba(15,23,42,.65),
            rgba(15,23,42,.65)
        ),
        url('../images/engine-hero.jpg');

    background-size: cover;
    background-position: center;

    color: white;
}

.tractor-hero {

    background:
    linear-gradient(
    rgba(15,23,42,.65),
    rgba(15,23,42,.65)),
    url('../images/tractor-hero.jpg');

    background-size: cover;
    background-position: center;

}

.transmission-hero {

    background:
    linear-gradient(
    rgba(15,23,42,.65),
    rgba(15,23,42,.65)),
    url('../images/transmission-hero.jpg');

    background-size: cover;
    background-position: center;

}

.chassis-hero {

    background:
    linear-gradient(
    rgba(15,23,42,.65),
    rgba(15,23,42,.65)),
    url('../images/chassis-hero.jpg');

    background-size: cover;
    background-position: center;

}

.controls-hero {

    background:
    linear-gradient(
    rgba(15,23,42,.65),
    rgba(15,23,42,.65)),
    url('../images/controls-hero.jpg');

    background-size: cover;
    background-position: center;

}

.implements-hero {

    background:
    linear-gradient(
    rgba(15,23,42,.65),
    rgba(15,23,42,.65)),
    url('../images/implements-hero.jpg');

    background-size: cover;
    background-position: center;

}

.auxiliary-equipment-hero {

    background:
    linear-gradient(
    rgba(15,23,42,.65),
    rgba(15,23,42,.65)),
    url('../images/auxiliary-equipment-hero.jpg');

    background-size: cover;
    background-position: center;

}

.electrical-hero {

    background:
    linear-gradient(
    rgba(15,23,42,.65),
    rgba(15,23,42,.65)),
    url('../images/electrical-hero.jpg');

    background-size: cover;
    background-position: center;

}

.engine-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.engine-badge {
    display: inline-block;
    background: #facc15;
    color: #111827;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 20px;
}

.engine-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.engine-hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: .95;
}

/* =====================================================
   КНОПКИ
   ===================================================== */
.engine-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ABOUT */

.engine-about {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

/* TOPICS */

.engine-topics {
    padding: 40px 20px;
}

.engine-topics h2{
    text-align: center;
}

.engine-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));
    gap: 25px;
}

.engine-card {
    position: relative;
    background: white;
    padding: 28px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow:
    0 8px 25px rgba(0,0,0,.08);
    transition: .3s;
}

.engine-card::after {
    content: "→";
    position: absolute;
    right: 24px;
    bottom: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #d4a100;
    transition: .25s;
}

.engine-card:hover::after {
    color: #facc15;
    transform: translateX(8px);
}

.engine-card:hover {
    transform: translateY(-8px);
    background: #fffbea;
    box-shadow:
    0 16px 40px rgba(250,204,21,.25);
}

.engine-card h3 {
    color: #f59e0b;
    margin-bottom: 12px;
}

/* LEARN */

.engine-learn {
    background: #e2e8f0;
    padding: 80px 20px;
}

.engine-learn h2 {
    text-align: center;
    margin-bottom: 40px;
}

.engine-learn ul {
    max-width: 900px;
    margin: auto;
}

.engine-learn li {
    margin-bottom: 15px;
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 768px) {

    /* HERO */

    .engine-hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .engine-badge {
        font-size: .85rem;
        padding: 6px 14px;
    }

    .engine-hero h1 {
        font-size: 2rem;
        line-height: 1.25;
        max-width: 12ch;
        margin-left: auto;
        margin-right: auto;
    }

    .engine-hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .engine-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .engine-buttons .bt-btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* ABOUT */

    .engine-about {
        padding: 30px 20px;
    }

    .engine-about h2 {
        font-size: 1.8rem;
    }

    .engine-about p {
        text-align: justify;
    }

    /* TOPICS */

    .engine-topics {
        padding: 30px 20px;
    }

    .engine-topics h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .engine-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .engine-card {
        padding: 22px;
    }

    .engine-card h3 {
        font-size: 1.1rem;
    }

    .engine-card p {
        margin-right: 40px;
    }

    /* Натискання на картку */

    .engine-card:active {
        transform: scale(.98);
        background: #fef3c7;
        border-color: #facc15;
    }

    /* LEARN */

    .engine-learn {
        padding: 50px 20px;
    }

    .engine-learn h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .engine-learn ul {
        padding-left: 20px;
    }

    .engine-learn li {
        margin-bottom: 12px;
    }

}