html, body {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    height: 100%;
    background: url('../img/bg-body.jpg') repeat 0 0 / cover;
}

.wrap {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

}

.main {
    background: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, .25);
    width: 840px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
	background-color: white;
	z-index: 60;
	//background: url('../img/envelope.png') no-repeat 5% bottom;
}

.wrap::before {
    background: url('../sources/motyw_2023.png') no-repeat bottom right / contain;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
	z-index: 1;
}

.wrap::after {
    background: url('../sources/motyw_small_2023.png') no-repeat top left / contain;
    width: 30%;
    height: 35%;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
	z-index: 1;
}


.main div {
    position: relative;
    text-align: center;
    padding: 0 30px;
	background-color: white;
}

.main div > * {
    display: block;
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
    transform: translateY(15px);
}

.main div > *.is-active {
    opacity: 1;
    transform: translateY(0);
}

.main div h1 {
    font-size: 5rem;
    line-height: 20px;
    color: #c31928;
    margin: 0 0 20px
}

.main div h2 {
    font-size: 2.5rem;
    line-height: 35px;
    color: #000;
    margin: 0 0 40px
}

.main div p {
    font-size: 2rem;
    line-height: 30px;
    margin: 0 0 30px;
}

.main div p:last-of-type {
    margin-bottom: 0;
}

.main div img {
    margin-top: 20px;
}

@media only screen and (max-width: 1799px) {
    .main div h1 {
        font-size: 4rem;
        line-height: 40px;
    }

    .main div h2 {
        font-size: 2rem;
        line-height: 30px;
    }

    .main div p {
        font-size: 1.8rem;
        line-height: 28px;
    }

    .main {
        height: 420px;
    }

    .main::after {
        background-size: auto 90%, auto 90%;
    }
}

@media only screen and (max-width: 1699px) {
    .main div {
        padding: 0 40px;
    }

    .main {
        height: 440px;
    }
}

@media only screen and (max-width: 1299px) {
    .main {
        width: 60vw;
        height: auto;
    }

    .main div {
        padding: 60px 40px;
    }

    .main div h1 {
        font-size: 3rem;
        line-height: 30px;
    }

    .main div h2 {
        font-size: 1.8rem;
        line-height: 28px;
    }

    .main div p {
        font-size: 1.6rem;
        line-height: 26px;
    }
}

@media only screen and (max-width: 1199px) {
    .main::after {
        background-size: auto 60%, auto 60%;
    }
}

@media only screen and (max-width: 991px) {
    .main::after {
        background-size: auto 55%, auto 55%;
    }

    .wrap {
        background-position: 50% 50%;
        background-size: auto 80%;
    }
}

@media only screen and (max-width: 575px) {
    .wrap {
        background: none;
        padding: 40px 0;
    }

    .main:after {
        background-size: auto 45%, auto 45%;
    }

    .main {
        width: 90vw;
    }
}

@media only screen and (max-width: 379px) {
    .main div h1 {
        font-size: 2.4rem;
        line-height: 34px;
    }

    .wrap {
        padding: 100px 0;
    }

    .main:after {
        background-size: auto 40%, auto 40%;
    }

    .main div {
        padding: 60px 20px;
    }

    .main div h2 {
        margin-bottom: 30px;
    }
}