/* 1rem = 1em = 16px  */


/* BELOW 992px (landscape tablets)*/

@media (max-width: 62em) {
    html {
        font-size: 56.3%;
    }
    .container-inner {
        max-width: 80rem;
        padding: 0 3rem;
    }
    .title {
        font-size: 9rem;
    }
    .main-text {
        font-size: 2.5rem;
    }
    .logos-second {
        gap: 5rem;
    }
    .contacts-bg {
        margin-bottom: 3rem;
    }
    .contacts {
        font-size: 1.8rem;
        column-gap: 2rem;
        line-height: 1.4;
        padding: 3rem;
    }
    footer {
        font-size: 1.7rem;
    }
    .address {
        text-align: center;
        margin-bottom: 1.6rem;
    }
    .company-data {
        flex-direction: column;
        gap: 1.8rem;
        padding-bottom: 2.6rem;
    }
    .btn-terms:link,
    .btn-terms:visited {
        font-size: 1.7rem;
    }
}


/* Below 736px **************************/

@media (max-width: 46em) {
    .container-inner {
        max-width: 60rem;
        padding: 0 3rem;
    }
    .title {
        font-size: 6.6rem;
        padding: 6rem 0 2rem 0;
    }
    .main-text {
        font-size: 2.4rem;
    }
    .main-text {
        padding-bottom: 5.4rem;
    }
    .logos-first {
        max-width: 50rem;
        grid-template-columns: 1fr 1fr 1fr;
        justify-self: center;
        align-self: center;
        gap: 4rem;
        padding-bottom: 5rem;
    }
    .logos-second {
        max-width: 50rem;
        grid-template-columns: 1fr 1fr 1fr;
        justify-self: center;
        align-self: center;
        gap: 7rem;
    }
    .contacts-bg {
        margin-bottom: 3rem;
    }
    .contacts {
        grid-template-columns: 1.3fr 1fr;
        padding: 2.4rem 4rem;
        row-gap: 2.6rem;
        column-gap: 2.6rem;
    }
    .company-data {
        font-size: 1.7rem;
        padding-bottom: 3.2rem;
    }
    .address {
        text-align: center;
        margin-bottom: 1.8rem;
    }
    .info {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        row-gap: 0.8rem;
        justify-content: center;
        padding-bottom: 1rem;
    }
    .btn-terms:link,
    .btn-terms:visited {
        font-size: 1.7rem;
    }
}


/* Below 438px ******************************/

@media (max-width: 27.8em) {
    html {
        font-size: 48%;
        text-align: center;
    }
    .title {
        font-size: 6.8rem;
    }
    .container-inner {
        max-width: 50rem;
    }
    .logos-first img,
    .logos-second img {
        justify-content: center;
        margin: 0 auto;
    }
    .logos-first img {
        max-width: 10rem;
    }
    .logos-first {
        max-height: 40rem;
        grid-template-columns: 1fr;
        margin: 0 auto;
        gap: 2.8rem;
    }
    .logos-second {
        grid-template-columns: 1fr;
        gap: 7rem;
        max-width: 10rem;
        gap: 4.8rem;
        margin: 8rem auto 0 auto;
    }
    .contacts {
        font-size: 1.8rem;
        line-height: 1.3;
        row-gap: 3.2rem;
        padding: 3rem 2.5rem;
        grid-template-columns: 1fr 1fr;
    }
    .info {
        flex-direction: column;
        justify-content: center;
        row-gap: 0;
    }
}