.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 300px;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(247, 244, 238, 0.7);
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-text p {
    margin: 8px 0 16px;
    font-size: 1.05rem;
    font-weight: bold;
}

.welcome {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 16px 0;
    text-align: center;
}

.welcome p {
    font-size: 1.15rem;
}

.explore {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
    scroll-margin-top: 96px;
}

.section-title {
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 8px 12px 16px;
    border: 1px solid #a5a4a1;
    text-align: center;
}

.section-title h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.55rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.section-title h2::before,
.section-title h2::after {
    content: "";
    flex: 1;
    height: 3px;
    background-color: #5f705e;
}

.section-lead {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 1.1rem;
    text-align: center;
}

.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 360px;
    margin: 0 auto;
}

.card {
    border: 1px solid #a5a4a1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(79, 94, 78, 0.25);
}

.card-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card h3 {
    padding: 10px 8px;
    border-top: 1px solid #a5a4a1;
    border-bottom: 1px solid #a5a4a1;
    font-size: 1.4rem;
    text-align: center;
    background-color: #c9d3c2;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.card-link:hover h3,
.card-link:focus-visible h3 {
    color: #ffffff;
    background-color: #5f705e;
}

.card p {
    padding: 20px 12px;
    text-align: center;
}

.card-arrow {
    font-weight: bold;
}

.explore .feature-box {
    max-width: 740px;
    margin: 32px auto 0;
}

@media (min-width: 700px) {
    .hero {
        min-height: 280px;
    }

    .hero::after {
        background-color: transparent;
        background-image: linear-gradient(to right, rgba(247, 244, 238, 0.85) 45%, rgba(247, 244, 238, 0) 70%);
    }

    .hero-text {
        padding: 24px 32px;
    }

    .hero-text h1 {
        font-size: 2.6rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        max-width: none;
    }

    .card h3 {
        font-size: 1.15rem;
    }
}

@media (min-width: 1028px) {
    .hero {
        min-height: 340px;
    }

    .hero::after {
        background-image: linear-gradient(to right, rgba(247, 244, 238, 0.6) 25%, rgba(247, 244, 238, 0) 45%);
    }

    .hero-text {
        padding: 24px 40px;
    }

    .hero-text h1 {
        font-size: 2.9rem;
    }

    .section-title h2 {
        font-size: 2.6rem;
    }

    .explore {
        padding: 32px 80px 24px;
    }

    .cards {
        gap: 96px;
    }

    .card h3 {
        font-size: 1.5rem;
    }
}
