* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('../img/bg-404.svg');
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #0A2326;
    font-weight: 400;
    line-height: 1.4;
}

.title {
    font-size: 50px;
    margin: 0;
    font-family: "Poltawski Nowy", serif;
    text-transform: none;
    color: #0A2326;
    font-weight: 700;
}

@media(min-width: 1000px) {
    .title {
        font-size: 96px;
    }
}

.title-description {
    margin: 0;
    margin-top: 15px;
    color: #ADBF4D;
    font-size: 40px;
}

@media(min-width: 1000px) {
    .title-description {
        font-size: 64px;
    }
}

.offers-text {
    margin: 0 0 30px 0;
}

p {
    font-size: 32px;
}

header,
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    padding-top: 40px;
    display: flex;
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
}

@media(min-width: 1000px) {
    header {
        justify-content: flex-start;
    }
}

.social-container {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}


@media (min-width: 1000px) {
    .social-container {
        position: absolute;
        right: 0;
        width: auto;
        margin-top: 0;
        display: block;
    }
}

main {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 100px;
}

.img-column {
    display: none;
}
.img-column img {
    position: absolute;
    bottom: 0;
    left: 0;
}

@media (min-width: 1000px) {
    .img-column {
        width: 100px;
        position: relative;
        display: block;
    }
}

.social-container {
    display: flex;
    gap: 15px;
}

.button {
    font-size: 18px;
    text-transform: uppercase;
    color: white;
    background-color: #ADBF4D;
    padding: 10px;
    font-weight: 800;
    box-shadow: 0px 5px 1px #71811C;
    border-radius: 0px;
    text-decoration: none;
    margin: 60px 0 60px 0;
    display: table;
}

@media(min-width: 1000px) {
    .button {
        padding: 10px 50px;
    }
}

.button:visited {
    color: white;
    background-color: #ADBF4D;
}

.offer-name {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    font-size: 16px;
    line-height: 120%;
    color: #0A2326;
    border-left: 5px solid #F26B3C;
    padding: 15px 0 15px 15px;
    text-decoration: none;
    margin: 0;
    padding: 15px;
    text-transform: uppercase;
}

.offers-container {
    display: grid;
    grid-column-gap: 30px;
    grid-auto-rows: 1fr;
    justify-content: center;
    margin-bottom: 130px;
    grid-row-gap: 30px;
}

@media (min-width: 1000px) {
    .offers-container {
        grid-template-columns: repeat(3, 224px);
        justify-content: start;
    }
}

.offer-name-container {
    border-top: none;
    width: 224px;
    padding: 15px 30px;
}

.offer-item {
    display: flex;
    flex-wrap: wrap;
    width: 224px;
    text-decoration: none;
    border: 4px solid #ECECEC;
}

.offer-item img {
    height: 144px;
}

.offer-img {
    position: relative;
    height: 144px;
}

.offer-img img {
    position: absolute;
    top: -4px;
    left: -4px;
}
