:root {
    --primary-color: #942006;
    --background-color: white;

    --font: Montserrat, serif;
}

body {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    color: var(--primary-color);
    font-family: var(--font);

    background: var(--background-color);
}

p, h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 0;
}

header {
    width: 100%;
    overflow: hidden;

    background: linear-gradient(red, red 70%, green 70%, green);
}

.header {
    width: calc(100% - 64px);
    max-width: 1250px;
    padding: 32px;
    margin: 0 auto;

    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.header__right,
.header__center,
.header__left {
    width: 100px;

    display: flex;
    align-items: center;
}

.header__right,
.header__left {
    width: 500px;
}

.header__left {
    flex-flow: column;
    align-items: flex-start;
    justify-content: center;
}

.header__time {
    display: flex;
    align-items: center;

    color: var(--background-color);
}

.header__title {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header__title img {
    width: 75px;
}

.header__right {
    justify-content: right;
    gap: 10px;
}

.header__social-img {
    width: 24px;
    height: 24px;
}

.header__phones {
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 1px;
}

.header__phone {
    color: var(--background-color);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}


/* Встречающий блок */
.hero {
    width: 100%;
    height: 600px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__img {
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    object-fit: cover;
}

.hero__shadow {
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    background: rgba(0, 0, 0, 0.3);
}

.hero__content {
    max-width: 700px;
    padding: 0 24px;

    position: relative;
    z-index: 3;
}

.hero__title {
    width: 100%;

    text-align: center;
    color: var(--background-color);
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
}

.hero__desc {
    width: 100%;

    text-align: center;
    color: var(--background-color);
    font-weight: 400;
    font-size: 16px;
}


/* Ассортимент */
.up {
    width: 100vw;
    height: 100vh;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.3);

    cursor: pointer;
}

.up__content {
    padding: 24px;

    position: relative;

    border-radius: 10px;
    background: var(--background-color);

    cursor: auto;
}

.up__cross {
    width: 20px;
    height: 20px;

    position: absolute;
    top: 10px;
    right: 10px;

    cursor: pointer;
}

.up__block {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.up__link {
    width: 100%;

    display: block;

    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 19px;
}

.up__link-img {
    width: 25px;

    filter: brightness(0) saturate(100%);
}

.up__text {
    max-width: 500px;
    margin-top: 10px;

    color: black;
    font-size: 16px;
    font-weight: 400;
}

.assort {
    width: 100%;
    margin: 0 auto;

    position: relative;
}

.assort__arrow {
    width: 40px;

    position: absolute;
    left: 24px;
    top: calc(50% - 25px);
    z-index: 3;

    cursor: pointer;

    opacity: .8;
}

.assort__arrow--right {
    left: auto;
    right: 24px;
}

.assort__arrow:hover {
    opacity: 0.5;
}

.assort__container {
    width: 100%;
}

.assort__item {
    width: 300px;
    height: 200px;

    position: relative;

    cursor: pointer;
}

.assort__item-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.assort__item-title {
    width: calc(100% - 24px);
    padding: 0 12px;

    position: absolute;
    bottom: 12px;
    left: 0;
    z-index: 2;

    font-size: 24px;
    text-align: center;
    color: var(--background-color);
}

.assort__item-shadow {
    width: 100%;
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    background: linear-gradient(transparent, rgba(0, 0, 0, 1));
}


/* Преимущества */
.adv {
    width: 100%;
    margin: 100px 0;
}

.adv__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.adv__item {
    max-width: 400px;

    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 10px;
}

.adv__item-icon {
    width: 150px;
}

.adv__item-title {
    width: 100%;

    font-size: 18px;
    text-align: center;
}


/* Каталог */
.catalog {
    width: 100%;
    margin: 0;
    padding: 50px 0;

    background: #EBEBEB;
}

.catalog__title {
    width: 100%;

    text-align: center;
    font-size: 32px;
    text-transform: uppercase;
}

.catalog__container {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.catalog__item {
    width: 100%;
    overflow: hidden;
    padding-bottom: 12px;

    position: relative;

    border-radius: 12px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.1);
}

.catalog__item-text {
    width: calc(100% - 24px);
    padding: 0 12px;
    margin-top: 8px;
    font-size: 16px;
    color: var(--primary-color);
    text-align: center;

    position: static; /* убираем absolute */
    height: auto; /* чтобы текст сам определял высоту */
    display: block;
}

.catalog__item-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition-duration: .5s;
}

/* Убираем ховер-эффект на картинке */
.catalog__item:hover .catalog__item-img {
    opacity: 1;
}

.catalog__item-title {
    width: 100%;
    margin-top: 16px;

    font-size: 24px;
    text-align: center;
}


/* О нас */
.about {
    width: 100%;
    margin: 100px 0;

    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.about__title {
    width: 100%;

    text-align: center;
    font-size: 32px;
    text-transform: uppercase;
}

.about__text {
    max-width: 700px;
    width: calc(100% - 48px);
    padding: 0 24px;

    text-align: center;
    font-size: 18px;
    color: black;
}


/* Способы доставки */
/* Партнеры */
.transfer,
.partners {
    width: 100%;
    margin: 100px 0;
}

.transfer__title,
.partners__title {
    width: 100%;

    text-align: center;
    font-size: 32px;
    text-transform: uppercase;
}

.transfer__container,
.partners__container {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 0;

    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.partners__container {
    gap: 10px;
}

.transfer__item {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.partners__item {
    height: 150px;
}

.transfer__item-icon {
    width: 200px;
}

.transfer__item-title {
    width: 100%;

    font-size: 18px;
    text-align: center;
}


footer {
    width: 100%;

    background: var(--primary-color);
}

.footer {
    width: calc(100% - 48px);
    max-width: 1400px;
    padding: 24px;
    margin: 0 auto;

    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.footer__right,
.footer__center,
.footer__left {
    width: 300px;

    display: flex;
    align-items: center;
}

.footer__right,
.footer__left {
    width: 400px;
}

.footer__left {
    flex-flow: column;
    align-items: flex-start;
}

.footer__time,
.footer__copyright {
    display: flex;
    align-items: center;

    color: var(--background-color);
}

.footer__center {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer__right {
    justify-content: right;
}

.footer__social-img {
    width: 24px;
    height: 24px;
}


@media (max-width: 1050px) {
    .catalog__container {
        width: calc(100% - 48px);
        padding: 0 24px;

        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .transfer__container,
    .adv__container,
    .partners__container {
        width: calc(100% - 48px);
        padding: 0 24px;
    }
}

@media (max-width: 730px) {
    .header {
        padding: 16px;
    }

    .header__phone {
        display: none;
    }

    .header__time--address {
        display: none;
    }
}


@media (max-width: 700px) {
    .header__center {
        display: none;
    }

    .adv__container,
    .transfer__container,
    .partners__container {
        justify-content: center;
        gap: 24px;
    }

    .catalog__container {
        grid-template-columns: 1fr;
    }

    .footer,
    .header {
        flex-flow: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    .footer__right,
    .footer__center,
    .footer__left,
    .header__right,
    .header__left {
        width: 100%;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer__time,
    .header__time,
    .footer__copyright {
        justify-content: center;

        text-align: center;
    }
}