body {
    background-color: #FBFCFD;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
}

h2, p {
    margin: 0;
}

.container {
    margin: 0 auto;
    max-width: 1110px;
    padding-left: 7.5px;
    padding-right: 7.5px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.row {
    margin-left: -7.5px;
    margin-right: -7.5px;
}

@media (min-width: 768px) {
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
}

.subtitle {
    color: #443B3C;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1666666667;
    padding-bottom: 24px;
    padding-top: 48px;
}

@media (min-width: 576px) {
    .subtitle {
        font-size: 36px;
        padding-bottom: 48px;
        padding-top: 96px;
    }
}

/* header */

header {
    background-color: white;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    padding-left: 0;
    padding-right: 0;
}

.header__left {
    background: #A3C74B;
    background: linear-gradient(-111deg, transparent 36px, #A3C74B 0);
}

.header__title {
    color: white;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.1666666667;
    margin: 36px 52px 36px 29px;
}

.header__left--address,
.footer__address {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
}

.header__left--address {
    display: block;
    color: white;
    margin: 17px 35px 17px 19px;
}

@media (min-width: 374px) {
    .header__left--address,
    .footer__address {
        font-size: 14px;
    }
}

@media (min-width: 576px) {
    .header__left--address {
        font-size: 16px;
        margin: 26px 52px 26px 29px;
    }

    .footer__address {
        font-size: 16px;
    }
}

.header__left--address strong {
    display: block;
}

.header__right {
    align-items: center;
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-right: 7.5px;
}

@media (min-width: 576px) {
    .header__right {
        margin-left: 18px;
    }
}

@media (min-width: 768px) {
    .header__right {
        margin-right: 15px;
    }
}

.header__right--phone,
.footer__phone {
    color: #A3C74B;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

@media (min-width: 374px) {
    .header__right--phone,
    .footer__phone {
        font-size: 16px;
    }
}

@media (min-width: 576px) {
    .header__right--phone,
    .footer__phone {
        font-size: 18px;
    }
}

.header__right--phone strong,
.footer__phone strong {
    font-weight: 900;
}

/* grid */

.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 7.5px;
}

@media (min-width: 768px) {
    .grid {
        grid-gap: 15px;
        grid-template-columns: 1fr 1fr;
    }
}

.grid__item {
    background-color: #443B3C;
    box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-bottom: 56.25%;
}

@media (min-width: 768px) {
    .grid__item:last-of-type {
        grid-column: 1 / 3;
    }
}

/* video */

.video {
    cursor: pointer;
    display: flex;
    position: absolute;
}

.video[data-playing="true"] ~ .backdrop {
    display: none;
}

/* contacts */

.contacts__row {
    display: grid;
    grid-template-columns: 1fr;
    grid-column-gap: 15px;
    grid-row-gap: 32px;
}

@media (min-width: 576px) {
    .contacts__row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .contacts__row {
        grid-column-gap: 30px;
    }
}

.contacts__card {
    align-items: center;
    display: flex;
}

.contacts__card img {
    background-color: #E5E5E5;
    border-radius: 50%;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
    display: block;
    height: 100px;
    min-width: 100px;
    width: 100px;
}

.contacts__profile {
    font-size: 16px;
    line-height: 1.5;
    margin-left: 32px;
}

.contacts__profile p {
    color: #443B3C;
    font-weight: bold;
    margin-bottom: 8px;
}

.contacts__profile a {
    color: #A3C74B;
}

/* brands */

.brands__list {
    align-items: center;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-left: -7.5px;
    margin-right: -7.5px;
}

.brands__list img {
    box-sizing: border-box;
    margin-bottom: 15px;
    padding-right: 7.5px;
    padding-left: 7.5px;
}

@media (max-width: 575px) {
    .brands__list img {
        max-width: 50%;
    }
}

@media (min-width: 576px) {
    .brands__list img {
        max-width: 25%;
    }
}

@media (min-width: 768px) {
    .brands__list {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
}

/* footer */

footer {
    background: white;
    margin-top: 49px;
}

@media (min-width: 576px) {
    footer {
        margin-top: 98px;
    }
}

footer .container {
    align-items: center;
    display: flex;
    height: 70px;
    justify-content: space-between;
}

@media (min-width: 576px) {
    footer .container {
        height: 100px;
    }
}

.footer__address b {
    font-weight: 300;
}

@media (max-width: 575px) {
    .footer__address b {
        display: block;
    }
}
