/* Hero: охрана кафе. Свои классы .cafe-hero*, старые стили не используются */

/* Сброс только внутри блока */
.cafe-hero,
.cafe-hero * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cafe-hero__btn {
    appearance: none;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* ПК */
.cafe-hero {
    position: relative;
    height: 470px;
    margin-bottom: 80px;
    overflow: hidden;
    background: #c4c4c4;
}

.cafe-hero__picture,
.cafe-hero__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cafe-hero__img {
    object-fit: cover;
    object-position: center;
}

.cafe-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1274px;
    height: 100%;
    margin: 0 auto;
    padding-top: 91px;
}

.cafe-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    width: 440px;
    max-width: 100%;
}

.cafe-hero__title {
    margin-bottom: 16px;
    font-family: "MTS Wide", sans-serif;
    font-weight: 500;
    font-size: 38px;
    line-height: 44px;
    text-transform: none;
    color: #fff;
}

.cafe-hero__text {
    font-family: "MTS Compact", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #fff;
}

.cafe-hero__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 198px;
    height: 56px;
    padding: 16px 40px;
    border-radius: 10px;
    background: #ff0032;
    font-family: "MTS Compact", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 140%;
    text-align: center;
    text-transform: none;
    color: #fff;
}

/* Планшет */
@media (max-width: 1023px) {
    .cafe-hero__inner {
        padding: 28px 35px 0;
    }

    .cafe-hero__content {
        width: 424px;
        gap: 32px;
    }

    .cafe-hero__title {
        margin-bottom: 10px;
        font-size: 24px;
        line-height: 28px;
    }

    .cafe-hero__text {
        font-size: 15px;
    }

    .cafe-hero__btn {
        min-width: 0;
        width: 261px;
        height: 49px;
        padding: 12px;
        font-size: 18px;
    }
}

/* Мобилка */
@media (max-width: 767px) {
    .cafe-hero {
        height: 510px;
    }

    .cafe-hero__inner {
        padding: 28px 16px 39px;
    }

    .cafe-hero__content {
        width: 100%;
        height: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .cafe-hero__head {
        width: 223px;
    }

    .cafe-hero__title {
        margin-bottom: 9px;
    }

    .cafe-hero__btn {
        width: 100%;
        height: 53px;
        padding: 14px 2px;
    }
}