section {
    margin-bottom: 5rem;
}

.header-bg {
    margin-bottom: 0 !important;
}

.hero {
    border-bottom: 0.625rem solid black;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: .3;
    filter: blur(0.25rem);
}

.hero .wrapper {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

.page-title {
    text-shadow: 0 0 1rem black;
    width: 78%;
}

.page-title h1 {
    font-size: 12rem;
    line-height: 1.2;
}

.page-title-image {
    position: absolute;
    bottom: 0;
    right: -8rem;
    width: 50%;
    height: 100%;
    user-select: none;
}

.page-title-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 0 1rem black);
}

.home-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.home-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--wrapper-text);
    background-color: var(--wrapper-bg);
    text-decoration: none;
    gap: 1rem;
    border-radius: var(--border-radius);
    transition: background-color .3s;
}

.home-card:hover {
    background-color: var(--wrapper-bg-hover);
}

.home-card-img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
}

.home-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-card-text h3 {
    margin-top: 0;
}

.about {
    display: grid;
    grid-template-columns: 20rem auto;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--wrapper-bg);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.a-page {
    display: grid;
    grid-template-columns: auto 20rem;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--wrapper-bg);
}

.a-page-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.reg-section {
    text-align: center;
    background: rgba(0, 0, 0, .4);
    padding: 4rem 0;
}

.button-link {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    background-color: var(--wrapper-bg);
    color: var(--text-color);
    text-decoration: none;
    margin-top: 2rem;
    transition: background-color .3s;
}

.button-link:hover {
    background-color: var(--wrapper-bg-hover);
}

@media (max-width: 1240px) {
    .hero .wrapper {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .page-title h1 {
        font-size: 10rem;
    }
}

@media (max-width: 1060px) {
    .home-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 9rem;
    }
}

@media (max-width: 820px) {

    .a-page,
    .about {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 690px) {
    .hero h1 {
        font-size: 6rem;
    }
}

@media (max-width: 480px) {
    .home-card {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 420px) {
    .page-title-image {
        right: -16rem;
        width: 100%;
    }
}

@media (max-width: 330px) {
    .page-title-image{
        display: none;
    }
    .page-title{
        width: 100%;
    }
}